import type { IComparable } from "../utils/helpers.js"; import type { EqualityComparator } from "./EqualityComparator.js"; /** * Since `HashMap` is implemented on top of `HashSet`, we defined a bucket type which can store a * key-value pair. The value is optional since looking up values in the map by a key only needs to include the key. */ export interface Bucket { key: K; value?: V; } export declare class MapKeyEqualityComparator implements EqualityComparator> { private readonly keyComparator; constructor(keyComparator: EqualityComparator); hashCode(obj: Bucket): number; equals(a: Bucket, b: Bucket): boolean; }