/** * File system utilities for the c15t CLI */ /** * Check if a file or directory exists */ export declare const exists: (filePath: string) => Promise; /** * Read a file as text */ export declare const readFile: (filePath: string) => Promise; /** * Read a file as JSON */ export declare const readJson: (filePath: string) => Promise; /** * Write content to a file */ export declare const writeFile: (filePath: string, content: string) => Promise; /** * Write JSON to a file */ export declare const writeJson: (filePath: string, data: unknown, options?: { indent?: number; }) => Promise; /** * Create a directory recursively */ export declare const mkdir: (dirPath: string) => Promise; /** * Remove a file or directory */ export declare const remove: (filePath: string) => Promise; /** * Copy a file */ export declare const copyFile: (src: string, dest: string) => Promise; /** * List files in a directory */ export declare const readDir: (dirPath: string) => Promise; /** * Check if a path is a directory */ export declare const isDirectory: (filePath: string) => Promise; /** * Check if a path is a file */ export declare const isFile: (filePath: string) => Promise; /** * Find files matching a pattern in a directory */ export declare const findFiles: (dir: string, pattern: RegExp, options?: { maxDepth?: number; }) => Promise; /** * Get the relative path from a base directory */ export declare const relativePath: (from: string, to: string) => string; /** * Join path segments */ export declare const joinPath: (...segments: string[]) => string; /** * Get the directory name from a path */ export declare const dirname: (filePath: string) => string; /** * Get the base name from a path */ export declare const basename: (filePath: string, ext?: string) => string; /** * Get the extension from a path */ export declare const extname: (filePath: string) => string; /** * Resolve a path to an absolute path */ export declare const resolvePath: (...segments: string[]) => string;