/** Minimal directory handle used by the production opener and focused tests. */
export interface DirectorySyncHandle {
    readonly sync: () => Promise<void>;
    readonly close: () => Promise<void>;
}
/** Injectable directory opener. */
export type OpenDirectory = (directory: string, flags: string) => Promise<DirectorySyncHandle>;
/**
 * Flush a containing directory when the host filesystem supports it.
 * Atomic rename protects ordinary crashes. A successful directory sync adds
 * power-loss durability; known platform-level lack of support is best effort.
 * Permission, device, and other real I/O failures remain fatal.
 * @param directory - Directory containing the renamed target
 * @param openDirectory - Injectable opener used by focused fault tests
 */
export declare function syncContainingDirectory(directory: string, openDirectory?: OpenDirectory): Promise<void>;
//# sourceMappingURL=directory-sync.d.ts.map