import { ListNode } from './list-node'; import { Comparator } from './comparator'; export declare class LinkedList> { protected head: ListNode; constructor(); static fromJson(json: string): LinkedList; add(value: T): void; search(value: T): ListNode | null; forEach(consumer: Function): void; toJson(): string; }