export * from './getParentNodes';
export * from './ValueFormat';
export * from './dictSelectUtil';
export * from './fileConvert';
export * from './urlUtils';
export * from './regExp';
export * from './response';
export * from '../RefactorTree/util';
export * from './transArrayToPage';
export declare const getPageQuery: () => any;
/**
* @param {string} str 字符串
* @param {string} separator 分割符(默认"-")
* @param {boolean} topIsCapital 开头是否大写(默认是)
*
* @result {string}
*/
export declare const toHump: (str: string, separator?: string, topIsCapital?: boolean) => string;
/**
* 下载文件
* @param {string} filename
* @param {blob} file
* @param {string} type 文件类型(直接用.xls或者对应的MIMETYPE都可以)
* .xls 'application/vnd.ms-excel'
* .xlsx 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
*/
export declare const downloadFile: (filename: string, file: any, type: string) => void;
/**
* 将给定的数组拆分成多个子数组,每个子数组的元素之和尽可能接近 24,但不超过 24。如果某个元素无法放入当前子数组而不超过 24,则会创建一个新的子数组。
* splitArrayToSum 函数:这个函数接受两个参数,arr 是输入的数组,targetSum 是目标值(在这个例子中是 24)。
* result 数组:用于存储最终的子数组。
* currentArray 数组:当前正在处理的子数组。
* currentSum 变量:当前子数组的和。
* 循环遍历输入数组:对于每个元素,检查是否可以将其加入当前子数组而不超过目标值。如果可以,则将其加入当前子数组并更新 currentSum;否则,将当前子数组加入 result,并开始一个新的子数组。
* 最后处理:在循环结束后,将最后一个子数组加入 result。
* */
export declare const splitArrayToSum: (arr: any, targetSum: any) => any[][];
/***
* 上传文件大小限制检查,支持按kb、mb、 gb单位进行提示提示:
* // 限制5MB,自动使用MB提示
* file: 文件对象(来自input[type=file])
* limitSize: 限制大小数值(如:2)
* limitUnit: 限制单位('K'、'M' 或 'G')
* displayUnit(可选): 提示信息的单位(默认使用limitUnit)
*
* @example 示例
* checkFileSize(file, 5, 'M'); // 限制5MB,自动使用MB提示
* checkFileSize(file, 500, 'K', 'M'); // 限制500KB,但用MB提示
* checkFileSize(file, 1, 'G'); // 限制1GB,用GB提示
*/
export declare const checkFileSize: (file: any, { limitSize, limitUnit, displayUnit }: {
limitSize: number;
limitUnit: string;
displayUnit?: string | undefined;
}, msgCallback?: ((limit?: string) => void) | undefined) => boolean;
export declare const formatNumber: (num: any) => number;
/**
* 检查文件类型是否符合指定的Accept规则
* @param {File} file - 文件对象
* @param {string} accept - 允许的MIME类型或后缀,逗号分隔(如 "image/*, .pdf")
* @returns {boolean} - 是否通过验证
*/
export declare const isFileTypeAccepted: (file: any, accept: any) => boolean;
/**
* 对象值中排除多个字段
* @param {} props
*
* 使用
* ;
* 排除多个
*
* */
export declare const excludeProps: (props: any, ...keysToExclude: any[]) => any;