export declare class Tree { left: Tree | null; right: Tree | null; root?: Tree; list: Tree[]; private data; constructor(data: T, left?: Tree, right?: Tree); create(list: T[]): void; preOrder(root: Tree | null): void; inOrder(root: Tree | null): void; afterOrder(root: Tree | null): void; }