/** * Small in-memory cache with TTL + in-flight de-duplication. * Intended for provider-layer request fanout control. */ /** Cache used by providers to reuse recent responses and collapse concurrent calls. */ export declare class ProviderCache { private readonly now; private readonly entries; private readonly inflight; constructor(now?: () => number); /** * Returns cached value when fresh; otherwise executes loader once for all callers. * `ttlMs <= 0` disables persistence but still preserves in-flight de-duplication. */ getOrLoad(key: string, ttlMs: number, loader: () => Promise): Promise; /** Drops all cached and in-flight entries. */ clear(): void; private readCached; } //# sourceMappingURL=cache.d.ts.map