export declare class Heap<T> {
    private heap;
    private readonly comparator;
    constructor(comparator: (a: T, b: T) => boolean);
    push(...values: T[]): this;
    peek(): T;
    pop(): T;
    replace(value: T): T;
    clear(): void;
    toArray(): T[];
    get size(): number;
    private greater;
    private swap;
    private siftUp;
    private siftDown;
}
