export declare function getPathFromTree(data: any[], id: string, keyDic?: {
    value: string;
    label: string;
    children: string;
}, checkFn?: (item: {
    [x: string]: any;
}, value: any, keyDic?: {
    value: string;
    label: string;
    children: string;
}) => boolean, indexArray?: any[]): any[];
export declare function getItemFromTree(treeData: any[], value: string, keyDic?: {
    value: string;
    label: string;
    children: string;
}, checkFn?: (item: {
    [x: string]: any;
}, value: any, keyDic?: {
    value: string;
    label: string;
    children: string;
}) => boolean): any;
/**
 * 根据 key 拍平数组
 * @param arr
 */
export declare function isArray(val: unknown): val is Array<unknown>;
export declare function flatten<T extends Record<string, unknown>, K extends keyof T>(arr: T[], key: K, result?: never[]): T[];
