import { RBTreeNode } from '../data-structures'; import { IBST, IBSTNode } from './bst'; import { BinaryTreeNodeId } from '../types'; export type IRBTreeNode> = IBSTNode; export interface IRBTree> extends IBST { createNode(id: BinaryTreeNodeId, val?: N['val'], count?: number): N; }