/** * Ensure directory exists, creating it if necessary */ export declare function ensureDirectory(dirPath: string): void; /** * Read JSON file safely */ export declare function readJsonFile(filePath: string): T | null; /** * Write JSON file safely */ export declare function writeJsonFile(filePath: string, data: any, indent?: number): boolean; /** * Read text file safely */ export declare function readTextFile(filePath: string): string | null; /** * Write text file safely */ export declare function writeTextFile(filePath: string, content: string): boolean; /** * List files in directory with extension filter */ export declare function listFiles(dirPath: string, extension?: string): string[]; /** * Check if file exists */ export declare function fileExists(filePath: string): boolean; /** * Get file stats */ export declare function getFileStats(filePath: string): any | null; /** * Get file size in bytes */ export declare function getFileSize(filePath: string): number; /** * Check if file size is within limits */ export declare function isValidFileSize(filePath: string): boolean; /** * Create backup of file */ export declare function backupFile(filePath: string): string | null; /** * Clean old backup files */ export declare function cleanOldBackups(dirPath: string, retentionDays?: number): number; /** * Get relative pathModule from base directory */ export declare function getRelativePath(baseDir: string, fullPath: string): string; /** * Resolve pathModule safely */ export declare function resolvePath(...segments: string[]): string; /** * Join pathModules safely */ export declare function joinPath(...segments: string[]): string; /** * Get directory name from pathModule */ export declare function getDirectoryName(filePath: string): string; /** * Get filename from pathModule */ export declare function getFilename(filePath: string): string; /** * Get filename without extension */ export declare function getFilenameWithoutExtension(filePath: string): string; /** * Get file extension */ export declare function getFileExtension(filePath: string): string; //# sourceMappingURL=file.d.ts.map