/** * Directory Utilities * * Common utilities for directory operations * * @requirement TASK-3.1 - Refactor to Eliminate Duplication */ /** * Ensure directory exists, creating parent directories if needed * * @param dirPath - Directory path * @throws Error if directory cannot be created */ export declare function ensureDirectory(dirPath: string): Promise; /** * Ensure parent directory exists for a file path * * @param filePath - File path * @throws Error if directory cannot be created */ export declare function ensureParentDirectory(filePath: string): Promise; /** * Check if directory exists * * @param dirPath - Directory path * @returns True if directory exists */ export declare function directoryExists(dirPath: string): Promise; /** * Get all subdirectories in a directory * * @param dirPath - Directory path * @returns Array of subdirectory paths */ export declare function getSubdirectories(dirPath: string): Promise; /** * Remove directory and all contents * * @param dirPath - Directory path * @throws Error if removal fails */ export declare function removeDirectory(dirPath: string): Promise; /** * Copy directory and all contents * * @param srcDir - Source directory * @param destDir - Destination directory * @throws Error if copy fails */ export declare function copyDirectory(srcDir: string, destDir: string): Promise;