/// /** * Abstraction over user-mutable storage (pages, settings, themes, data, uploads). * * All paths are absolute. Callers build paths with `path.join(config.pagesFolder, ...)` * exactly as they do today — the provider simply executes the I/O against * whatever backend it wraps (local filesystem, blob storage, etc.). * * Package/read-only content (required-pages, default-themes, static-files, * service-connectors) stays on local filesystem and is NOT routed through * this interface. */ export interface StorageProvider { checkIfExists(filePath: string): Promise; loadFile(filePath: string): Promise; saveFile(filePath: string, content: string): Promise; deleteFile(filePath: string): Promise; saveBuffer(filePath: string, data: Buffer): Promise; loadBuffer(filePath: string): Promise; stat(filePath: string): Promise<{ size: number; isFile: boolean; }>; createReadStream(filePath: string): NodeJS.ReadableStream; listFiles(dirPath: string): Promise; listFolders(dirPath: string): Promise; ensureFolderExists(dirPath: string): Promise; deleteFolder(dirPath: string): Promise; copyFolderRecursive(srcPath: string, destPath: string): Promise; } //# sourceMappingURL=StorageProvider.d.ts.map