/** * A Map that automatically creates default values when accessing missing keys. * * @example * ```typescript * const countsByCategory = new DefaultMap(() => []); * countsByCategory.get('fruits').push(1); // No need to check if key exists * countsByCategory.get('fruits').push(2); * console.log(countsByCategory.get('fruits')); // [1, 2] * ``` */ export declare class DefaultMap extends Map { private defaultValueBuilder; constructor(defaultValueBuilder: () => V); /** * Gets the value for a key. If the key doesn't exist, creates a default value, * stores it, and returns it. */ get(key: K): V; } //# sourceMappingURL=default-map.d.ts.map