/** * Diagnostic caching utilities */ import type { Diagnostic, CacheStats } from '../types/index.js'; /** * Diagnostic cache with LRU eviction */ export declare class DiagnosticCache { private cache; private stats; constructor(maxSizeMB?: number); /** * Get cached diagnostics for a file */ get(key: string): Diagnostic[] | null; /** * Set diagnostics for a file */ set(key: string, diagnostics: Diagnostic[], fileHash?: string): void; /** * Check if cache has entry */ has(key: string): boolean; /** * Delete entry from cache */ delete(key: string): void; /** * Clear all cached diagnostics */ clear(): void; /** * Invalidate cache entries by pattern */ invalidateByPattern(pattern: RegExp): number; /** * Get cache statistics */ getStats(): CacheStats; /** * Reset statistics */ resetStats(): void; /** * Get all cached file paths */ getCachedFiles(): string[]; /** * Warm cache with initial diagnostics */ warmCache(entries: Map): void; } /** * Simple file hash for change detection */ export declare function hashFile(content: string): string; //# sourceMappingURL=cache.d.ts.map