/** * Filesystem-based Response Cache for CLI * * Stores cached API responses as JSON files organized by hash prefix. * Cache entries never expire - they're kept forever. */ import type { CachedResponse, ResponseCache } from './types'; /** * Filesystem-based cache implementation for CLI usage. * * Directory structure: * ``` * ./chat-to-map/cache/requests/ * ├── ab/ * │ └── abcd1234...json * ├── cd/ * │ └── cdef5678...json * ``` * * Uses first 2 chars of hash as subdirectory to avoid too many files in one dir. */ export declare class FilesystemCache implements ResponseCache { private readonly cacheDir; constructor(cacheDir: string); get(hash: string): Promise | null>; set(hash: string, response: CachedResponse): Promise; setPrompt(hash: string, prompt: string): Promise; /** * Get the file path for a cache entry. * If key contains '/', use as subdirectory. Otherwise use first 2 chars as prefix. */ private getCachePath; /** * Clear all cached entries (for testing or manual cleanup) */ clear(): Promise; } //# sourceMappingURL=filesystem.d.ts.map