/** * Small in-memory TTL cache with LRU-ish eviction (Map insertion order). * Values are cached per (query, variables) key by the client. */ export interface TtlCacheOptions { maxEntries?: number; now?: () => number; } export declare class TtlCache { private readonly maxEntries; private readonly now; private readonly map; constructor(opts?: TtlCacheOptions); get(key: string): V | undefined; set(key: string, value: V, ttlMs: number): void; get size(): number; clear(): void; }