/** Verifies an existing project directory without following symlink ancestors. */ export declare function assertCanonicalProjectDirectory(projectRoot: string, directory: string): Promise; declare type DirectoryReplacementOptions = Readonly<{ label: string; journalSuffix: string; backupSuffix: string; stagingPrefix: string; }>; /** Creates a confined project directory one canonical segment at a time. */ export declare function ensureCanonicalProjectDirectory(projectRoot: string, directory: string): Promise; /** Recovers a journaled directory swap after process interruption. */ export declare function recoverDirectoryReplacement(output: string, options: DirectoryReplacementOptions): Promise; /** Replaces one directory with a durable journal and recoverable backup. */ export declare function replaceDirectoryTransactionally(staging: string, output: string, options: DirectoryReplacementOptions): Promise; export { }