///
import * as echarts from 'echarts';
import { DataNode } from 'antd/lib/tree';
export interface IFieldNamesType {
title?: string;
key?: string;
children?: string;
hasChild?: string;
}
/**
* @desc 获取对应路径的数据
* @param originalData 原始数据
* @param pathStr 数据路径
*/
export declare const getFinalPathData: (originalData: any, pathStr: string) => any;
/**
* @desc 判断数组内所有值是否都符合指定类型,未指定类型则判断类型是否相同
* @param vals 数组
* @param type 指定类型
* @returns Boolean
*/
export declare function isSameType(vals: unknown[], type?: string): vals is T[];
/**
* @desc 判断是否对象
*/
export declare function isObject(val: any): val is Record;
/**
* @desc 判断是否字符串
*/
export declare function isString(val: unknown): val is string;
/**
* @desc 将任意值转换成数组
*/
export declare function toArray(value: any): any[];
/**
* @desc 判断是否为空,包括空数组、空对象、空字符串、null、undefined
*/
export declare function isEmpty(val: any): boolean;
/**
* @desc 将对象转为 url 参数
* @param obj 对象
*/
export declare function objToUrlParams(obj?: Record): string;
/**
* @desc 下载文件
* @param url 下载地址
* @param params 参数
*/
export declare function dowloadFile(url: string, params?: Record): void;
/**
* @desc 使用 post 方式下载文件
* @param url 导出地址
* @param params 参数
*/
export declare function dowloadFileByPost(url: string, params: Record): void;
/**
* 合并 props
*/
export declare function mergeProps>(initial?: Partial, props?: Partial): T;
/**
* @desc 获取antd表格单元格的值
* @param values 行数据
* @param dataIndex 列数据字段路径
*/
export declare const getColumnValue: (values: Record, dataIndex?: Readonly) => any;
/**
* @desc 判断字符串是否包含中文
* @param str 需要判断的字符串
*/
export declare const isContainChinese: (str: string) => boolean;
/**
* @desc 调整数组元素的位置
* @param moveArray 待调整位置的数组
* @param originIndex 元素调整前的index值
* @param destIndex 元素调整后的index值
*/
export declare function swapArrayLocs(moveArray: any[], originIndex: number, destIndex: number): any[];
type ColorItem = string | echarts.graphic.LinearGradient;
type CubeConfig = {
/** 数据源 */
data?: number[];
/** 两侧方块的宽度 */
sideCubeWidth?: number;
/** 顶部方块的高度 */
topCubeHeight?: number;
/** 左右上方块的颜色顺序合集,分别为左色,右色和上色 */
shapeColor?: [leftColor?: ColorItem, rightColor?: ColorItem, topColor?: ColorItem];
/** 底部样式类型,plain-平滑,polygon-矩形形状 */
botomType?: 'plain' | 'polygon';
};
export declare function getCubeConfig(options: CubeConfig): any;
export declare function deepLoop(datap: DataNode[], key: React.Key, callback: (node: DataNode, i: number, datac: DataNode[]) => void): void;
/**
* @desc 判断是否定义
*/
export declare function isDef(val?: T): val is T;
/**
* @desc 根据过滤函数过滤对象
*/
export declare function filterObj(obj: RS, handler: (value: T, key: string) => boolean): RS;
/**
* @desc 过滤对象中的 undefined 值
*/
export declare function filterUndefined(obj: RS): RS;
/**
* @desc 判断是否为 null/undefined/NaN
*/
export declare function isNil(value: any): value is T;
/**
* @desc 判断输入值是否符合指定类型
* @param val 要判断的值
* @param type 要判断的类型
* @returns Boolean
*/
export declare function is(val: unknown, type: string): boolean;
/**
* @desc 判断是否数字
*/
export declare function isNumber(val: unknown): val is number;
export declare function isFunction(val: unknown): val is Function;
export declare const localeCompare: (a: any, b: any, order: 'ascend' | 'descend', emptySortMode?: 'order' | 'bottom') => number;
/** 获取页面滚动条宽度 */
export declare const getScrollBarSize: () => number;
/**
* @desc 获取路径或普通文件名中的扩展名
* @param filepath 文件名或路径
* @returns [去除扩展名的部分,扩展名]
*/
export declare function getFileExtension(filepath: any): [string, string];
export {};