import { regexp } from './regExp'; import { Ref } from 'vue'; import { EnumProps } from '../types'; export declare const getPrefixCls: (scope?: string) => string; export declare function phoneValidator(rule: any, value: string, callback: (error?: Error) => void): void; export declare function setRules(valueType: keyof typeof regexp, rules?: any[], label?: string, validator?: any): any[]; /** * @description 生成唯一 uuid * @returns {String} */ export declare function generateUUID(): string; /** * @description 处理 ProTable 值为数组 || 无数据 || 格式化数据 * @param {*} callValue 需要处理的值 * @returns {String} * */ export declare function formatValue(callValue: any, format?: ((value: any) => string) | string): any; /** * @description 处理 ProTable 值为枚举或字典 * @param {Array} dist 字典/枚举 * @param {String} callValue 值 * @returns {String} 处理后的值 */ export declare function handleDict(dist: EnumProps[] | Ref, callValue: string | number): string; /** * @description 判断是否是函数 * @param {*} fn 判断对象 * @returns {Boolean} * */ export declare const isFunction: (fn: any) => boolean; export declare function include(options: any[], _include?: any[], key?: string): any[]; export declare function exclude(options: any[], _exclude?: any[], key?: string): any[];