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