export declare class BinaryHeap { private ids; private dists; private _size; private capacity; private readonly isMaxHeap; constructor(capacity: number, isMaxHeap?: boolean); /** * Push an element onto the heap. * Auto-grows when at capacity to avoid silently dropping elements. */ push(id: number, dist: number): void; /** * Double the heap capacity when full. */ private grow; pop(): number; peek(): number; peekValue(): number; size(): number; clear(): void; isEmpty(): boolean; getCapacity(): number; private heapifyUp; private heapifyDown; } /** * MaxBinaryHeap - A max-heap for HNSW result tracking. * * Keeps the FURTHEST element at the top, allowing O(log n) eviction * of the worst result when a better one is found. */ export declare class MaxBinaryHeap extends BinaryHeap { constructor(capacity: number); } //# sourceMappingURL=BinaryHeap.d.ts.map