import { Vertex } from './Vertex'; export declare class VertexList { private head; private tail; constructor(); clear(): void; /** * Inserts a `node` before `target`, it's assumed that * `target` belongs to this doubly linked list * * @param {Vertex} target * @param {Vertex} node */ insertBefore(target: Vertex, node: Vertex): void; /** * Inserts a `node` after `target`, it's assumed that * `target` belongs to this doubly linked list * * @param {Vertex} target * @param {Vertex} node */ insertAfter(target: Vertex, node: Vertex): void; /** * Appends a `node` to the end of this doubly linked list * Note: `node.next` will be unlinked from `node` * Note: if `node` is part of another linked list call `addAll` instead * * @param {Vertex} node */ add(node: Vertex): void; /** * Appends a chain of nodes where `node` is the head, * the difference with `add` is that it correctly sets the position * of the node list `tail` property * * @param {Vertex} node */ addAll(node: Vertex): void; /** * Deletes a `node` from this linked list, it's assumed that `node` is a * member of this linked list * * @param {Vertex} node */ remove(node: Vertex): void; /** * Removes a chain of nodes whose head is `a` and whose tail is `b`, * it's assumed that `a` and `b` belong to this list and also that `a` * comes before `b` in the linked list * * @param {Vertex} a * @param {Vertex} b */ removeChain(a: Vertex, b: Vertex): void; first(): Vertex; isEmpty(): boolean; }