export interface SemanticCacheConfig { strategy: "exact" | "semantic"; /** Cosine similarity threshold for semantic cache hits. Defaults to 0.95. */ similarityThreshold?: number; /** Max cache size in MB (in-memory LRU). Defaults to 500. */ maxSizeMB?: number; /** Persistence backend. Defaults to "memory". */ persistence?: "memory" | "sqlite"; /** Path to SQLite database file. Defaults to ".rag-embedding-cache.db". */ sqlitePath?: string; } export declare class SemanticCache { private readonly config; /** In-memory LRU store: key → embedding */ private readonly lru; /** Semantic store: [embedding, originalKey][] for cosine comparison */ private semantic; private db; private dbReady; constructor(config: SemanticCacheConfig); get(text: string, embed: (t: string) => Promise): Promise; set(text: string, embedding: number[]): Promise; private lruPut; private initDb; private dbGet; private dbSet; } //# sourceMappingURL=semantic-cache.d.ts.map