type Node = [number, string]; type Branch = { value: Node; children?: T[]; }; export interface Tree extends Branch { } export interface SwapTree { tree: Tree; } export {};