import type { BinaryTreeOptions } from './binary-tree'; import type { Comparator, OptValue } from '../../common'; type BSTBaseOptions = Omit, 'isDuplicate'>; export type BSTOptions = BSTBaseOptions & { comparator?: Comparator; enableOrderStatistic?: boolean; } export type BSTNOptKey = K | undefined; export type OptNode = NODE | undefined; export type BSTNEntry = [BSTNOptKey, OptValue]; export type BSTNOptKeyOrNode = BSTNOptKey | NODE; export type BSTNRep = BSTNEntry | BSTNOptKeyOrNode;