import type { TreeNodeData } from 'element-plus/es/components/tree/src/tree.type'; export declare function isValidValue(val: any): any; export declare function isValidArray(val: any): number | false; export declare function toValidArray(val: any): any[]; declare type TreeCallback = (data: T, index: number, array: T[], parent?: T) => R; declare type TreeFindCallback = TreeCallback; export declare function treeFind(treeData: T[], findCallback: TreeFindCallback, getChildren: (data: T) => T[]): T | undefined; export declare function treeFind(treeData: T[], findCallback: TreeFindCallback, getChildren: (data: T) => T[], resultCallback?: TreeCallback, parent?: T): R | undefined; export declare function treeEach(treeData: T[], callback: TreeCallback, getChildren: (data: T) => T[], parent?: T): void; export {};