export declare type IProps = T & { children: T[]; }; export interface IOptions { parentKey?: string; pidKey?: string; pidValue?: string | number | null; } export declare const useTransformTree: (arrData: T[], options?: IOptions) => IProps[];