1 | import { AbstractSet } from "../interface/AbstractSet";
|
2 | export declare class TreeSet<T> extends AbstractSet<T> {
|
3 | private tree;
|
4 | private size;
|
5 | constructor(compareKey?: keyof T);
|
6 | add(item: T): this;
|
7 | entries(): Array<T>;
|
8 | has(item: T): boolean;
|
9 | remove(item: T): boolean;
|
10 | diff(set: AbstractSet<T>): Array<T>;
|
11 | union(set: AbstractSet<T>): Array<T>;
|
12 | intersect(set: AbstractSet<T>): Array<T>;
|
13 | readonly Size: number;
|
14 | }
|