/** * File System Utilities * Provides safe file system operations with consistent error handling */ /** * Safe file read operation with existence check and error handling * @param filePath - Path to file to read * @param encoding - File encoding (default: 'utf8') * @returns File content or null if file doesn't exist */ export declare function safeReadFile(filePath: string, encoding?: BufferEncoding): Promise; /** * Safe file write operation with directory creation and error handling * @param filePath - Path to file to write * @param content - Content to write * @param encoding - File encoding (default: 'utf8') * @returns True if successful */ export declare function safeWriteFile(filePath: string, content: string, encoding?: BufferEncoding): Promise; /** * Safe file deletion with existence check and error handling * @param filePath - Path to file to delete * @returns True if deleted or didn't exist, false on error */ export declare function safeDeleteFile(filePath: string): Promise; /** * Safe directory deletion with existence check and error handling * @param dirPath - Path to directory to delete * @param recursive - Whether to delete recursively (default: false) * @returns True if deleted or didn't exist, false on error */ export declare function safeDeleteDirectory(dirPath: string, recursive?: boolean): Promise; /** * Safe path existence check with error handling * @param filePath - Path to check * @returns True if exists, false otherwise */ export declare function safePathExists(filePath: string): Promise; //# sourceMappingURL=safeOperations.d.ts.map