type Comparator = (a: K, b: K) => number; export declare class BTreeSet { #private; size: number; readonly comparator: Comparator; constructor(comparator: Comparator, entries?: IterableIterator); /** Releases the tree so that its size is 0. */ clear(): void; clone(): BTreeSet; get(key: K): K | undefined; add(key: K): this; /** * Returns true if the key exists in the B+ tree, false if not. * Use get() for best performance; use has() if you need to * distinguish between "undefined value" and "key not present". * @param key Key to detect * @description Computational complexity: O(log size) */ has(key: K): boolean; /** * Removes a single key-value pair from the B+ tree. * @param key Key to find * @returns true if a pair was found and removed, false otherwise. * @description Computational complexity: O(log size) */ delete(key: K): boolean; keys(): IterableIterator; values(): IterableIterator; valuesFrom(lowestKey?: K, inclusive?: boolean): IterableIterator; valuesReversed(): IterableIterator; valuesFromReversed(highestKey?: K, inclusive?: boolean): IterableIterator; [Symbol.iterator](): IterableIterator; } export {}; //# sourceMappingURL=btree-set.d.ts.map