///
import { TreeDataNode } from 'antd';
/**
* 将 key-value 数据分组
*
* @param data 原始的 key-value 数据
* @param groupKey 分类字段
* @returns 分组后的数据或原数据
*/
export declare function data2Group(data: any[] | undefined, groupKey: string): Record | any[];
/**
* 根据原始数据生成 axis 配置
*
* @param data 原始的 key-value 数据
* @param option 配置项
* @param axis 坐标轴
* @returns option
*/
export declare function data2EchartsAxis(data?: any[], option?: Record, axis?: 'x' | 'y'): Record;
/**
* 根据原始数据生成 series 配置
*
* @param data 原始数据
* @param option 配置项
* @param axis 坐标轴
* @returns option
*/
export declare function data2EchartsSeries(data?: any[] | Record, option?: Record, axis?: 'x' | 'y'): Record;
/**
* 将 value 转换为缩写
*
* @param value 数值
* @param toFixed 保留的位数,默认1位
* @returns string 缩写: 如1.1, 1.1K, 1.1M, 1.1B
*/
export declare function toAbbr(value: number, toFixed?: number): string;
/**
* 将 value 转换为相对于最大值的缩写
*
* @param value 数值
* @param toFixed 保留的位数,默认1位
* @param max 参考的最大值
* @returns string 缩写: 如1.1, 1.1K, 1.1M, 1.1B
*/
export declare function toMaxAbbr(value: number, toFixed: number | undefined, max: number): string;
/**
* 将 value 每 3 位进行分隔,分割符为 separator
*
* @param value 分隔的值
* @param separator 分隔符
* @returns string
*/
export declare function toThousands(value: number, separator?: string): string;
/** 获得表格名称 */
export declare function getStorageName(name?: string): string;
/** 根据秒生成后端需要的时间间隔格式 */
export declare function generateGranularity(second: number): {
timeNum: number;
timeUnit: API.TimeGranularityUnit;
};
/** 帮助中心前缀 */
export declare function getOnlineHelpCtx(): "/o11y-doc" | "https://docs.o11y.tingyun.com" | "/doc" | "https://wukongdoc.tingyun.com";
/** 当前登陆账号是否有写入权限 */
export declare function canWrite(): boolean;
/** 根据列的 dataIndex 获得列的值,dataIndex 为列数据在数据项中对应的路径,支持通过数组查询嵌套路径 */
export declare function getColumnValue(obj: Record, dataIndex: string | string[]): any;
/** 对字符串进行base64编码 */
export declare function toBase64(str: string): string;
/** 将js对象转成formdata */
export declare function objectToFormData(obj: Record): FormData;
/** 获得 tree 中 key 的 parentKey */
export declare function getParentKey(key: React.Key, tree: TreeDataNode[]): React.Key;
/** 转义正则表达式中的特殊字符 */
export declare function escapeRegExp(reg: string): string;
/**
* 将原始值中和搜索值匹配的字符串改为特定颜色
*
* @param rawValue 原始值
* @param searchValue 搜索值
* @param color 颜色
* @returns 返回带有HTML标记的字符串
*/
export declare function highlightSearchText(rawValue: string, searchValue: string, color?: string): string;