import type { ColumnItem, ColumnOption } from "./table"; /** 获取插槽 */ export declare const getSlots: (columns: ColumnItem[]) => any[]; /** * 处理后缀 柯里化 TODO: 根据需求扩展更多 * @param {String} symbol '后缀的标识' */ export declare const handleSuffix: (symbol: string) => ({ cellValue }: { cellValue: any; }) => string; /** * 处理前缀 柯里化 TODO: 根据需求扩展更多 * 如果标识为currencySymbol和确定要格式化金额 * @param {String} symbol '后缀的标识' * @param {String} amount '金额标识' */ export declare const handlePrefix: (symbol: string, amount?: string | undefined) => ({ cellValue, row }: { cellValue: any; row: any; }) => string; /** 处理默认值 */ export declare const handleDefaultShow: () => ({ cellValue }: { cellValue: any; }) => any; /** * 处理枚举 柯里化 * @param {Array} options '枚举的项列表' */ export declare const handleEnum: (options: ColumnOption) => ({ cellValue }: { cellValue: any; }) => any; /** * 格式化数据 * * @param { number} num - 要格式化的数据 * @param { number} digits - 小数点后数字的个数 默认为2 * @returns number */ export declare const toFixed: (num: number, digits?: number) => string | null; export declare function handleAmount(val: number, num?: number): any; /** * 处理内容的格式化 */ export declare const handleFormatter: (columns: ColumnItem[]) => ColumnItem[];