export declare class YallistNode { constructor(value: T, prev: null | YallistNode, next: null | YallistNode, list: Yallist); value: T; list: Yallist | null; prev: YallistNode | null; next: YallistNode | null; } export declare class Yallist { constructor(); length: number; tail: null | YallistNode; head: null | YallistNode; push(item: T): number; unshift(item: T): number; unshiftNode(node: YallistNode): void; removeNode(node: YallistNode): YallistNode | null; forEach(callbackFn: (value: T, index: number, list: this) => void): void; map(callbackFn: (value: T, list: this) => T): Yallist; toArray(): T[]; }