export interface ListToTreeOptions { listIdField?: string; listParentField?: string; treeChildrenField?: string; } export default function listToTree(list: TListItem[], options: ListToTreeOptions): TTreeNode[];