/** * Copyright (c) 2018-2025 mol* contributors, licensed under MIT, See LICENSE file for more info. * * @author Alexander Rose * @author David Sehnal */ export interface DefaultMap extends Map { /** Return the value for `key` when available or the default value otherwise. */ getDefault: (key: K) => V; } /** A `Map` instance with a `getDefault` method added. */ export declare function DefaultMap(valueCtor: () => V): DefaultMap; export declare function arrayMapAdd(map: Map, key: K, value: V): void;