//#region src/sized/map.d.ts /** * A _Map_ with a maximum size * * Behavior is similar to a _LRU_ cache, where the least recently used entries are removed */ declare class SizedMap extends Map { #private; /** * Is the _Map_ full? */ get full(): boolean; get maximum(): number; /** * Create a new _SizedMap_ with entries and a maximum size _(2^20)_ * * @param entries Array of key-value pairs to initialize the _SizedMap_ with * @template SizedKey Type of the keys in the _SizedMap_ * @template SizedValue Type of the values in the _SizedMap_ */ constructor(entries: [SizedKey, SizedValue][]); /** * Create a new _SizedMap_ with a maximum size _(but clamped at 2^24)_ * * @param maximum Maximum size of the _SizedMap_ * @template SizedKey Type of the keys in the _SizedMap_ * @template SizedValue Type of the values in the _SizedMap_ */ constructor(maximum: number); /** * Create a new _SizedMap_ with _(optional)_ entries and a maximum size * * @param entries Array of key-value pairs to initialize the _SizedMap_ with * @param maximum Maximum size of the _SizedMap_ _(defaults to 2^20; clamped at 2^24)_ * @template SizedKey Type of the keys in the _SizedMap_ * @template SizedValue Type of the values in the _SizedMap_ */ constructor(entries?: [SizedKey, SizedValue][], maximum?: number); /** * @inheritdoc */ get(key: SizedKey): SizedValue | undefined; /** * @inheritdoc */ set(key: SizedKey, value: SizedValue): this; } //#endregion export { SizedMap };