UNPKG

@flatten-js/interval-tree

Version:
30 lines 1.04 kB
/** * Created by Alex Bol on 4/1/2017. */ import { IntervalBase } from './Interval'; import { type NodeColor } from '../utils/constants'; import type { IntervalInput } from '../types'; declare class Node<V = any> { left: Node<V> | null; right: Node<V> | null; parent: Node<V> | null; color: NodeColor; item: { key?: IntervalBase; values: V[]; }; max: IntervalBase | undefined; constructor(key?: IntervalInput, value?: V, left?: Node<V> | null, right?: Node<V> | null, parent?: Node<V> | null, color?: NodeColor); isNil(): boolean; private requireKey; less_than(other_node: Node<V>): boolean; _value_equal(other_node: Node<V>): boolean; equal_to(other_node: Node<V>): boolean; intersect(other_node: Node<V>): boolean; copy_data(other_node: Node<V>): void; update_max(): void; not_intersect_left_subtree(search_node: Node<V>): boolean; not_intersect_right_subtree(search_node: Node<V>): boolean; } export default Node; //# sourceMappingURL=Node.d.ts.map