/** * Map with a LRU (Least recently used) policy. * * https://en.wikipedia.org/wiki/Cache_replacement_policies#LRU */ export declare class LruMap extends Map { maxSize: number; constructor(size: number); set(key: string, value: value): this; } /** @internal */ export declare const promiseCache: LruMap>; type WithDedupeOptions = { enabled?: boolean | undefined; id?: string | undefined; }; /** Deduplicates in-flight promises. */ export declare function withDedupe(fn: () => Promise, { enabled, id }: WithDedupeOptions): Promise; export {}; //# sourceMappingURL=withDedupe.d.ts.map