import type { ProTreeModalFieldNamesType, ProTreeModalDataType } from './propsType'; /** * 树转成铺平的数组 * @param originalTreeData * @returns */ export declare function getFlatTreeData(originalTreeData: ProTreeModalDataType[], fieldNames: ProTreeModalFieldNamesType, modeType?: string): any[]; /** * 获取 tree 所有的 keys 集合 * @param data * @param fieldNames * @returns */ export declare function getAllKeys(data: ProTreeModalDataType[], fieldNames: ProTreeModalFieldNamesType): string[]; /** * 获取展开的key * @param key * @param tree * @param fieldNames * @returns */ export declare const getParentKey: (key: string, tree: ProTreeModalDataType[], fieldNames: ProTreeModalFieldNamesType) => string; export declare function findTreeNodeByKey(treeData: ProTreeModalDataType[], key: string, fieldNames: ProTreeModalFieldNamesType): ProTreeModalDataType[]; /** * 根据所选的 checkedKeys 筛选出展示的 treeData * @param data * @param checkedKeys * @returns */ export declare function filterCheckedNodes(data: any, checkedKeys: any, searchStr: string, fieldNames: ProTreeModalFieldNamesType): any[]; /** * 获取 tree 当前选中节点下的所有子节点的 keys * @param node * @param childrenKeys * @returns */ export declare function getChildrenKeys(node: ProTreeModalDataType, childrenKeys: string[], fieldNames: ProTreeModalFieldNamesType, type: 'treeClose' | 'treeCheck'): void; export declare const transformMessage: (obj: any, message: string) => string; export declare const addLevelAndParentId: (tree: any[], fieldNames: any, currentLevel?: number, currentParentId?: any) => any[];