/** * Storage provider interface for file system operations * Enables abstraction from filesystem implementation for better testability */ export type IStorageProvider = { /** * Read file contents as UTF-8 string */ readFile(path: string): Promise; /** * Write file contents (overwrites if exists) */ writeFile(path: string, content: string): Promise; /** * Check if file or directory exists */ exists(path: string): Promise; /** * Create directory (optionally recursive) */ mkdir(path: string, options?: { recursive?: boolean; }): Promise; /** * List directory contents */ readdir(path: string): Promise; /** * Remove file or directory */ rm(path: string, options?: { recursive?: boolean; force?: boolean; }): Promise; }; /** * JSON storage abstraction for type-safe JSON operations */ export type IJsonStorage = { /** * Read and parse JSON file */ read(path: string): Promise; /** * Write and stringify data to JSON file */ write(path: string, data: T): Promise; }; //# sourceMappingURL=storage.interface.d.ts.map