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