/** * A minimal extension of Map that utilizes JSON.stringify for its keys. * This allows using objects as keys, provided they can be consistently stringified. * Note: The order of properties in an object affects its JSON string representation. * Ensure keys have a consistent property order or structure for reliable lookups. */ export declare class StringifyMap extends Map { /** * Creates a new StringifyMap instance. * @param entries An iterable of key-value pairs to initialize the map with. Keys will be stringified. */ constructor(entries?: readonly (readonly [K, V])[] | null); /** * Returns the value associated with the key, or undefined if there is none. * The key is stringified before lookup. */ get(key: K): V | undefined; /** * Sets the value for the key in the Map object. Returns the Map object. * The key is stringified before being stored. */ set(key: K, value: V): this; /** * Returns a boolean indicating whether an element with the specified key exists or not. * The key is stringified before checking for existence. */ has(key: K): boolean; /** * Removes the specified element from a Map object by key. * Returns true if an element in the Map object existed and has been removed, or false if the element does not exist. * The key is stringified before attempting deletion. */ delete(key: K): boolean; } //# sourceMappingURL=StringifyMap.d.ts.map