import { ComparatorFn } from '@collectable/core'; import { RedBlackTreeStructure } from './RedBlackTree'; import { BRANCH, Node } from './node'; export declare class PathNode { node: Node; parent: PathNode; next: BRANCH; static NONE: PathNode; static cache: PathNode; constructor(node: Node, parent: PathNode, next: BRANCH); static next(node: Node, parent: PathNode, next: BRANCH): PathNode; static release(p: PathNode, node?: Node): Node; static releaseAndRecount(p: PathNode, node: Node): Node; isActive(): boolean; isNone(): boolean; replace(node: Node): void; release(): PathNode; } export declare function findPath(tree: RedBlackTreeStructure, key: K, root: Node, compare: ComparatorFn, p?: PathNode): PathNode; export declare function findSuccessor(tree: RedBlackTreeStructure, p: PathNode): PathNode; export declare function clonePath(path: PathNode): PathNode;