export declare function pathExists(filePath: string): Promise; export declare function ensureDir(dirPath: string): Promise; export declare function readJson(filePath: string): Promise; export declare function writeJsonAtomic(filePath: string, value: unknown): Promise; /** Atomically write JSON with private target permissions (`0o600`). */ export declare function writePrivateJsonAtomic(filePath: string, value: unknown): Promise; /** Atomically replace a text file, optionally setting the replacement file mode. */ export declare function writeTextAtomic(filePath: string, content: string, mode?: number): Promise; /** Atomically write text with private target permissions (`0o600`). */ export declare function writePrivateTextAtomic(filePath: string, content: string): Promise; export declare function removeIfExists(filePath: string): Promise; export declare function isDirectory(dirPath: string): Promise; export declare function isSymlink(filePath: string): Promise; export declare function readTextOrEmpty(filePath: string): Promise; export declare function listDirNames(dirPath: string): Promise; /** Recursively copy a directory, optionally dereferencing symbolic links. */ export declare function copyDir(fromDir: string, toDir: string, options?: { dereference?: boolean; }): Promise; /** Resolve a directory to its real path, falling back to an absolute path when resolution fails. */ export declare function resolveDirectoryPath(directoryPath: string): Promise; /** Copy a file, creating the destination directory when it does not exist. */ export declare function copyFile(fromPath: string, toPath: string): Promise;