export declare class MapAssertable extends Map { #private; /** * Ensures the key exists in the map, creating it with the factory if needed, and increments its usage counter. */ assert(key: K, factory: () => V): V; /** * Stores a factory that will be called lazily on first `get()`. * If the entry is released before being accessed, the factory is never invoked. */ setLazy(key: K, factory: () => V): void; get(key: K): V | undefined; has(key: K): boolean; delete(key: K): boolean; /** * Decrements the usage counter for the key and removes it from the map if no longer used. */ release(key: K): void; }