/** * Local file-based storage provider * Implements atomic writes using temp file + rename pattern */ import type { StorageProvider, VersionInfo } from '../types/storage.js'; /** * Local file storage implementation * Stores data as JSON files in the filesystem */ export declare class LocalFileStorage implements StorageProvider { private readonly baseDir; constructor(baseDir: string); /** * Get the full file path for a key */ private getPath; /** * Get the version directory for a key */ private getVersionDir; /** * Get the version file path */ private getVersionPath; /** * Ensure a directory exists */ private ensureDir; /** * Get a value by key */ get(key: string): Promise; /** * Set a value by key using atomic write (temp file + rename) */ set(key: string, value: T): Promise; /** * Delete a value by key */ delete(key: string): Promise; /** * List all keys with a given prefix */ list(prefix: string): Promise; /** * Check if a key exists */ exists(key: string): Promise; /** * Get a specific version of a value */ getVersion(key: string, version: number): Promise; /** * List all versions for a key */ listVersions(key: string): Promise; /** * Create a new version for a key (copies current value to version file) * Returns the new version number */ createVersion(key: string): Promise; } //# sourceMappingURL=LocalFileStorage.d.ts.map