export = arrayToTree; declare function arrayToTree(data: T[], options?: Partial): Array>; declare namespace arrayToTree { interface Options { childrenProperty: string; parentProperty: string; customID: string; rootID: string; } type Tree = T & { children?: Array>; }; }