import { Nullable } from '../types.js'; export declare class AVLNode { k: K; v: Set; l: Nullable>; r: Nullable>; h: number; constructor(key: K, value: V[]); updateHeight(): void; static getHeight(node: Nullable>): number; getBalanceFactor(): number; rotateLeft(): AVLNode; rotateRight(): AVLNode; toJSON(): object; static fromJSON(json: any): AVLNode; } export declare class AVLTree { root: Nullable>; private insertCount; constructor(key?: K, value?: V[]); insert(key: K, value: V, rebalanceThreshold?: number): void; insertMultiple(key: K, value: V[], rebalanceThreshold?: number): void; rebalance(): void; toJSON(): object; static fromJSON(json: any): AVLTree; private insertNode; private rebalanceNode; find(key: K): Nullable>; contains(key: K): boolean; getSize(): number; isBalanced(): boolean; remove(key: K): void; removeDocument(key: K, id: V): void; private findNodeByKey; private removeNode; rangeSearch(min: K, max: K): Set; greaterThan(key: K, inclusive?: boolean): Set; lessThan(key: K, inclusive?: boolean): Set; }