import type { Comparator, HeadlessNode, ITreeNode } from './types'; export declare const first: (root: N | undefined) => N | undefined; export declare const last: (root: N | undefined) => N | undefined; export declare const next: (curr: N) => N | undefined; export declare const prev: (curr: N) => N | undefined; export declare const size: (root: N | undefined) => number; export declare const find: (root: ITreeNode | undefined, key: K, comparator: Comparator) => ITreeNode | undefined; export declare const findOrNextLower: (root: ITreeNode | undefined, key: K, comparator: Comparator) => ITreeNode | undefined; export declare const insertRight: (node: HeadlessNode, p: HeadlessNode) => void; export declare const insertLeft: (node: HeadlessNode, p: HeadlessNode) => void; export declare const insert: (root: ITreeNode | undefined, node: ITreeNode, comparator: Comparator) => ITreeNode; export declare const remove: (root: N | undefined, node: N) => N | undefined;