import { BinaryTree, BinaryTreeNode } from '../data-structures'; import { BinaryTreeDeleteResult, BinaryTreeNested, BinaryTreeNodeNested, BinaryTreeOptions, BTNCallback, BTNExemplar } from '../types'; export interface IBinaryTree< K = number, V = any, N extends BinaryTreeNode = BinaryTreeNodeNested, TREE extends BinaryTree = BinaryTreeNested > { createNode(key: K, value?: N['value']): N; createTree(options?: Partial>): TREE; add(keyOrNodeOrEntry: BTNExemplar, value?: V, count?: number): N | null | undefined; addMany(nodes: Iterable>, values?: Iterable): (N | null | undefined)[]; delete>(identifier: ReturnType | null, callback: C): BinaryTreeDeleteResult[]; }