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