export interface LRUEntry { readonly key: K; readonly value: V; readonly byteSize: number; lastAccessed: number; } export declare class LRUCache { private cache; private totalBytes; private readonly maxBytes; private readonly maxEntries; constructor(maxBytes?: number, maxEntries?: number); get(key: K): V | null; set(key: K, value: V, byteSize: number): void; has(key: K): boolean; delete(key: K): V | null; clear(): void; get size(): number; get bytes(): number; get capacity(): number; /** * Shrink the cache to a target byte size by evicting LRU entries. */ shrinkTo(targetBytes: number): void; }