/** * File system utilities to replace fs-extra with native Node.js fs * Provides cross-platform compatibility without ESM issues */ import fs from "fs/promises"; import { createReadStream, createWriteStream } from "fs"; /** * Ensure a directory exists, creating it if necessary */ export declare function ensureDir(dir: string): Promise; /** * Check if a path exists */ export declare function pathExists(filePath: string): Promise; /** * Copy a file or directory */ export declare function copy(src: string, dest: string): Promise; /** * Move a file or directory */ export declare function move(src: string, dest: string, options?: { overwrite?: boolean; }): Promise; /** * Remove a file or directory */ export declare function remove(filePath: string): Promise; /** * Read a JSON file */ export declare function readJson(filePath: string): Promise; /** * Write a JSON file */ export declare function writeJson(filePath: string, data: any, options?: { spaces?: number; }): Promise; /** * Empty a directory without removing it */ export declare function emptyDir(dir: string): Promise; export { fs }; export { createReadStream, createWriteStream }; export declare const readFile: typeof fs.readFile; export declare const writeFile: typeof fs.writeFile; export declare const readdir: typeof fs.readdir; export declare const stat: typeof fs.stat; export declare const unlink: typeof fs.unlink; //# sourceMappingURL=fs-utils.d.ts.map