type TDefaultValueFactory = (key?: K) => V; /** * A `Map` subclass that auto-creates values for missing keys using a * factory function. Optionally enforces an LRU-style size limit by * evicting the oldest entry when the limit is reached. */ export declare class DefaultMap extends Map { private mkDefault; private limit; constructor(mkDefault: TDefaultValueFactory, entries?: Iterable<[K, V]>, limit?: number); /** Returns the value for `key`, creating it via the factory if absent. */ get(key: K): V; /** Sets `key` to `value`, evicting the oldest entry if the size limit is reached. */ set(key: K, value: V): this; } export {}; //# sourceMappingURL=default-map.d.ts.map