import { Stats } from 'fs'; /** * Core file operation utilities for the i18n integration tool */ export declare class FileOperations { /** * Safely read a file with error handling */ static readFile(filePath: string): Promise; /** * Safely write a file with error handling and directory creation */ static writeFile(filePath: string, content: string): Promise; /** * Check if a file exists */ static fileExists(filePath: string): Promise; /** * Check if a path is a directory */ static isDirectory(dirPath: string): Promise; /** * Create a backup of a file */ static createBackup(filePath: string): Promise; /** * Find files matching patterns with exclusions */ static findFiles(patterns: string[], options?: { cwd?: string; exclude?: string[]; absolute?: boolean; }): Promise; /** * Copy a file from source to destination */ static copyFile(sourcePath: string, destPath: string): Promise; /** * Get file stats (size, modification time, etc.) */ static getFileStats(filePath: string): Promise; /** * Ensure a directory exists, creating it if necessary */ static ensureDirectory(dirPath: string): Promise; /** * Read and parse JSON file safely */ static readJsonFile(filePath: string): Promise; /** * Write JSON file with proper formatting */ static writeJsonFile(filePath: string, data: any, indent?: number): Promise; /** * Get relative path from base directory */ static getRelativePath(from: string, to: string): string; /** * Resolve absolute path */ static resolvePath(...paths: string[]): string; /** * Get file extension */ static getFileExtension(filePath: string): string; /** * Get filename without extension */ static getBaseName(filePath: string): string; } //# sourceMappingURL=file-operations.d.ts.map