export type Comparator = (a: T, b: T) => number; export type DFSOrderPattern = 'pre' | 'in' | 'post'; export type OneParamCallback = (node: N) => D; export enum CP { lt = 'lt', eq = 'eq', gt = 'gt' }