export declare class CoalesceCache { private inflight; private resultCache; /** * Coalesce concurrent calls with the same key. * Only the first call actually executes `fn`; subsequent * concurrent calls receive the same promise. */ coalesce(key: string, fn: () => Promise): Promise; /** * Return a cached result if within TTL, otherwise * fall through to coalesce(). */ cached(key: string, ttlMs: number, fn: () => Promise): Promise; /** Drop expired entries on write; if still at the cap, drop oldest first. */ private evictForSpace; /** Clear all cached results (does not affect in-flight requests). */ clearCache(): void; }