import {BinaryTreeNode} from '../data-structures'; import {BinaryTreeDeletedResult, BinaryTreeNodeKey, MapCallback} from '../types'; export interface IBinaryTree> { createNode(key: BinaryTreeNodeKey, val?: N['val']): N; add(keyOrNode: BinaryTreeNodeKey | N | null, val?: N['val']): N | null | undefined; delete>(identifier: ReturnType | N, callback: C): BinaryTreeDeletedResult[]; }