///
interface TreeHelperConfig {
id: string;
children: string;
pid: string;
}
export declare function listToTree(list: any[], config?: Partial): T[];
export declare function treeToList(tree: any, config?: Partial): T;
export declare function findNode(tree: T[], func: (node: T) => boolean, config?: Partial): T | null;
export declare function findNodeAll(tree: any, func: Fn, config?: Partial): T[];
export declare function findPath(tree: any, func: Fn, config?: Partial): T[] | null;
export declare function findPathAll(tree: any, func: Fn, config?: Partial): any[];
export declare function filter(tree: T[], func: (n: T) => boolean, config?: Partial): T[];
export declare function forEach(tree: T[], func: (n: T) => any, config?: Partial): void;
export declare function treeMap(treeData: T[], opt: {
children?: string;
conversion: (t: T) => R;
}): R[];
export declare function treeMapEach(data: any, { children, conversion }: {
children?: string;
conversion: (t: T) => R;
}): R;
export declare function eachTree(treeDatas: any[], callBack: Fn, parentNode?: {}): void;
export {};