/** * File operation utilities */ /** * Check if a file exists * @param filePath - Path to file * @returns True if file exists */ export declare function fileExists(filePath: string): boolean; /** * Check if a directory exists * @param dirPath - Path to directory * @returns True if directory exists */ export declare function directoryExists(dirPath: string): boolean; /** * Read file contents as string * @param filePath - Path to file * @returns File contents or null if error */ export declare function readFile(filePath: string): string | null; /** * Write contents to file * @param filePath - Path to file * @param content - Content to write * @returns True if successful */ export declare function writeFile(filePath: string, content: string): boolean; /** * Append contents to file * @param filePath - Path to file * @param content - Content to append * @returns True if successful */ export declare function appendFile(filePath: string, content: string): boolean; /** * Make file executable (chmod +x) * @param filePath - Path to file * @returns True if successful */ export declare function makeExecutable(filePath: string): boolean; /** * Create directory if it doesn't exist * @param dirPath - Path to directory * @returns True if successful */ export declare function ensureDirectory(dirPath: string): boolean; /** * Resolve path relative to current working directory * @param relativePath - Relative path * @returns Absolute path */ export declare function resolvePath(relativePath: string): string; //# sourceMappingURL=file-utils.d.ts.map