/** * File system operation helpers */ /** * Check if a path exists */ export declare function pathExists(path: string): Promise; /** * Check if a path is a directory */ export declare function isDirectory(path: string): Promise; /** * Check if a path is a file */ export declare function isFile(path: string): Promise; /** * Ensure a directory exists, creating it if necessary */ export declare function ensureDir(path: string): Promise; /** * Ensure the parent directory of a file exists */ export declare function ensureParentDir(filePath: string): Promise; /** * Read a JSON file and parse it */ export declare function readJson(path: string): Promise; /** * Write an object to a JSON file */ export declare function writeJson(path: string, data: unknown, pretty?: boolean): Promise; /** * Read a text file */ export declare function readText(path: string): Promise; /** * Write text to a file */ export declare function writeText(path: string, content: string): Promise; /** * Write binary data to a file */ export declare function writeBinary(path: string, data: Buffer | Uint8Array): Promise; /** * List files in a directory with optional filtering */ export declare function listFiles(dir: string, options?: { extensions?: string[]; recursive?: boolean; }): Promise; /** * Get the filename without extension */ export declare function getBaseName(filePath: string): string; /** * Copy a file */ export declare function copyFile(src: string, dest: string): Promise; //# sourceMappingURL=file-system.d.ts.map