import { BinaryTree, BinaryTreeNode } from '../data-structures'; import { BinaryTreeNested, BinaryTreeNodeNested, BinaryTreeOptions, BiTreeDeleteResult, BTNCallback, BTNExemplar, BTNKey, } from '../types'; export interface IBinaryTree = BinaryTreeNodeNested, TREE extends BinaryTree = BinaryTreeNested> { createNode(key: BTNKey, value?: N['value']): N; createTree(options?: Partial): TREE; init(elements: Iterable>): void; add(keyOrNode: BTNKey | N | null, value?: N['value']): N | null | undefined; delete>(identifier: ReturnType | null, callback: C): BiTreeDeleteResult[]; }