/** * LSP Result Cache * * LRU cache for LSP responses to avoid redundant server calls. */ import type { LSPCacheOptions } from './lsp.types.js'; /** * LRU cache for LSP results */ export declare class LSPResultCache { private readonly cache; private readonly options; constructor(options?: Partial); /** * Get a cached result */ get(key: string): null | T; /** * Set a cached result */ set(key: string, value: T): void; /** * Invalidate entries for a file (e.g., when file is modified) */ invalidateFile(filePath: string): void; /** * Clear the entire cache */ clear(): void; /** * Get cache statistics */ getStats(): { maxEntries: number; size: number; ttlMs: number; }; /** * Generate a cache key for an LSP request */ static makeKey(method: string, filePath: string, ...extra: Array): string; } //# sourceMappingURL=lsp-result-cache.d.ts.map