/** * File System Existence Checking Utilities using fs-extra * Replaced with fs-extra for better maintainability and industry-standard implementation * * Migration Guide: * - safeExists() -> fs.pathExists() * - safeExistsAsync() -> fs.pathExists() * - safeStats() -> fs.stat() with error handling * - safeStatsAsync() -> fs.stat() with error handling * - isDirectory() -> fs.pathExists() + fs.stat() * - isFile() -> fs.pathExists() + fs.stat() */ import fs from 'fs-extra'; /** * Safely checks if a file or directory exists (sync version - DEPRECATED: use async version) * @param filePath - Path to check * @returns true if exists, false otherwise * @deprecated Use safeExistsAsync instead for better scalability */ export declare function safeExists(filePath: string): boolean; /** * Safely checks if a file or directory exists (async version) * @param filePath - Path to check * @returns true if exists, false otherwise */ export declare function safeExistsAsync(filePath: string): Promise; /** * Safely gets file stats (sync version - DEPRECATED: use async version) * @param filePath - Path to check * @returns fs.Stats object or null if failed * @deprecated Use safeStatsAsync instead for better scalability */ export declare function safeStats(filePath: string): fs.Stats | null; /** * Safely gets file stats (async version) * @param filePath - Path to check * @returns fs.Stats object or null if failed */ export declare function safeStatsAsync(filePath: string): Promise; /** * Safely checks if path is a directory (sync version - DEPRECATED: use async version) * @param dirPath - Path to check * @returns true if directory exists, false otherwise * @deprecated Use isDirectoryAsync instead for better scalability */ export declare function isDirectory(dirPath: string): boolean; /** * Safely checks if path is a file (sync version - DEPRECATED: use async version) * @param filePath - Path to check * @returns true if file exists, false otherwise * @deprecated Use isFileAsync instead for better scalability */ export declare function isFile(filePath: string): boolean; /** * Safely checks if path is a directory (async version) * @param dirPath - Path to check * @returns true if directory exists, false otherwise */ export declare function isDirectoryAsync(dirPath: string): Promise; /** * Safely checks if path is a file (async version) * @param filePath - Path to check * @returns true if file exists, false otherwise */ export declare function isFileAsync(filePath: string): Promise; /** * Direct access to fs-extra for advanced use cases * For new code, prefer using fs-extra directly */ export { fs }; //# sourceMappingURL=fileExistence.d.ts.map