/** * Agentic QE v3 - Embedding Cache * LRU cache for embeddings with content hash-based deduplication */ import { EmbeddingCacheEntry, CacheStats } from './types'; /** * Embedding cache with LRU eviction policy */ export declare class EmbeddingCache { private cache; private maxSize; private hits; private misses; constructor(maxSize?: number); /** * Generate SHA-256 hash of content for cache key */ private hashContent; /** * Get cached embedding if available */ get(content: string, model: string): number[] | null; /** * Store embedding in cache */ set(content: string, model: string, embedding: number[]): void; /** * Check if embedding exists in cache */ has(content: string, model: string): boolean; /** * Get cache statistics */ getStats(): CacheStats; /** * Clear all cached embeddings */ clear(): void; /** * Remove entries older than specified age */ evictOlderThan(ageMs: number): number; /** * Get memory usage estimate in bytes */ getMemoryUsageEstimate(): number; /** * Export cache for persistence */ export(): Array<{ key: string; entry: EmbeddingCacheEntry; }>; /** * Import cache from persistence */ import(data: Array<{ key: string; entry: EmbeddingCacheEntry; }>): void; } //# sourceMappingURL=embedding-cache.d.ts.map