type TreeNodes = any[] & {
    findNodeById: (id: any) => any;
};
declare function arrayToTree(nodes: any[], option: {
    idKey: string;
    parentKey: string;
    childrenKey: string;
    sortKey?: string;
}): TreeNodes;

export { type TreeNodes, arrayToTree };
