/** * @typedef {object} UniqueMap * @property {Function} addItem Adds a new item to the unique map. * @property {Function} clear Clears the map. * @property {Function} getId Returns ID for the passed item. * @property {Function} getItem Gets item from the passed ID. * @property {Function} getItems Gets all items from the map. * @property {Function} hasItem Verifies if the passed ID exists in a map. * @property {Function} removeItem Removes item from the passed id if exists. */ /** * Creates a new unique map. * * @param {object} config The config for priority queue. * @param {Function} config.errorIdExists The function to generate custom message if ID is already taken. * @returns {UniqueMap} */ export declare function createUniqueMap({ errorIdExists }?: { errorIdExists?: Function; }): { addItem: (id: unknown, item: unknown) => void; clear: () => void; getId: (item: unknown) => unknown; getItem: (id: unknown) => unknown; getItems: () => [unknown, unknown][]; getValues: () => unknown[]; hasItem: (id: unknown) => boolean; removeItem: (id: unknown) => boolean; };