/** * In-Memory Storage Backend * * Stores all data in memory using a Map. Useful for: * - Testing without file system * - Small datasets that fit in memory * - Browser environments without OPFS/IndexedDB * - Temporary caches */ import type { StorageBackend } from './StorageBackend.js'; export declare class MemoryBackend implements StorageBackend { readonly type = "memory"; private storage; private directories; constructor(); read(key: string): Promise; write(key: string, data: ArrayBuffer | Uint8Array): Promise; append(key: string, data: ArrayBuffer | Uint8Array): Promise; delete(key: string): Promise; exists(key: string): Promise; list(prefix?: string): Promise; mkdir(path: string): Promise; /** * Clear all data */ clear(): void; /** * Get memory usage statistics */ getStats(): { keyCount: number; totalBytes: number; }; /** * Export all data as a serializable object * Useful for debugging or saving state */ export(): Record; /** * Import data from a serializable object */ import(data: Record): void; } //# sourceMappingURL=MemoryBackend.d.ts.map