/** * Creates a simple LRU-like cache with a maximum size. * When the cache exceeds MAX_SIZE, the oldest entry is removed. * * @param maxSize - Maximum number of entries in the cache * @returns An object with get, set, has, clear, and size methods */ export declare function createCache(maxSize?: number): { /** * Get a value from the cache */ get(key: string): T | undefined; /** * Set a value in the cache, evicting oldest entry if at capacity */ set(key: string, value: T): void; /** * Check if a key exists in the cache */ has(key: string): boolean; /** * Clear all entries from the cache */ clear(): void; /** * Get the current size of the cache */ readonly size: number; }; export type Cache = ReturnType>;