/**
 * Atomically writes JSON data to a file.
 * Writes to a temp file first, then renames to prevent corruption on crash.
 */
export declare function atomicWriteJSON<T>(filePath: string, data: T): Promise<void>;
/**
 * Safely reads and parses a JSON file.
 * Returns null if the file doesn't exist or contains invalid JSON.
 */
export declare function readJSON<T>(filePath: string): Promise<T | null>;
/**
 * Deletes a file. Returns true if deleted, false if not found or on error.
 */
export declare function deleteFile(filePath: string): Promise<boolean>;
/**
 * Ensures a directory exists, creating it recursively if needed.
 */
export declare function ensureDir(dirPath: string): Promise<void>;
/**
 * Synchronously checks if a file exists.
 */
export declare function fileExists(filePath: string): boolean;
/**
 * Lists files in a directory, optionally filtering by extension.
 * Returns an empty array if the directory doesn't exist.
 */
export declare function listFiles(dirPath: string, extension?: string): Promise<string[]>;
/**
 * Lists subdirectories in a directory.
 * Returns an empty array if the directory doesn't exist.
 */
export declare function listDirectories(dirPath: string): Promise<string[]>;
//# sourceMappingURL=file-ops.d.ts.map