/** * Context storage implementation using filesystem */ import 'reflect-metadata'; import type { IContextStorage, Shortcut } from '../core/interfaces.js'; import type { ShortcutId } from '../types.js'; export declare class FileSystemStorage implements IContextStorage { private shortcutsCache; private cacheTimestamp; private readonly memoryTtl; private writeQueue; private isWriting; private pendingWrite; constructor(); record(shortcut: ShortcutId, context: string, options?: Record): Promise; get(shortcut: ShortcutId): Promise; list(): Promise; update(shortcut: ShortcutId, context: string, options?: Record): Promise; delete(shortcut: ShortcutId): Promise; purge(): Promise; exists(shortcut: ShortcutId): Promise; getByCategory(category: string): Promise; /** * Load shortcuts from storage with caching */ private loadShortcutsCached; /** * Load shortcuts from storage file */ private loadShortcuts; /** * Save shortcuts to storage with atomic write and batching * Batches multiple writes within a short time window to reduce I/O */ private saveShortcuts; /** * Flush all pending writes in the queue */ private flushWriteQueue; /** * Ensure all writes are flushed before shutdown */ flush(): Promise; } //# sourceMappingURL=filesystem.d.ts.map