node-ejs-renderer/node_modules/sonic-forest/lib/red-black/util.d.ts
2024-06-09 13:55:01 -04:00

8 lines
674 B
TypeScript

import type { Comparator } from '../types';
import type { IRbTreeNode, RbHeadlessNode } from './types';
export declare const insert: <K, N extends IRbTreeNode<K, unknown>>(root: N | undefined, n: N, comparator: Comparator<K>) => N;
export declare const insertRight: (root: RbHeadlessNode, n: RbHeadlessNode, p: RbHeadlessNode) => RbHeadlessNode;
export declare const insertLeft: (root: RbHeadlessNode, n: RbHeadlessNode, p: RbHeadlessNode) => RbHeadlessNode;
export declare const remove: <K, N extends IRbTreeNode<K, unknown>>(root: N | undefined, n: N) => N | undefined;
export declare const print: (node: undefined | RbHeadlessNode | IRbTreeNode, tab?: string) => string;