import { BTNode } from '../../data-structures/binary-tree/node/node'; export type Key = number | string; export type Entries = [K, V][] export type TraversalFn = (val: V, key: K, node: BTNode) => void; export type MatchFn = (val: V, key: K, node: BTNode) => boolean; export type BSTComparator = (a: K, b: K) => number;