/** * 金额转中文 * 思路: * 个 * 十 百 千 万 * 十万 百万 千万 亿 * 十亿 百亿 千亿 * * 1 * 2 3 4 5 * 6 7 8 9 * 10 * * 计算步骤 * 1. 获取当前数值大小 * 2. 排除个位后 数值按个,十,百,千有规律的重复 所以计算其和4的余数 pos % 4 * 3. pos = 0 ~ 3 没有最大单位 * pos = 4 ~ 7 最大单位是万 * pos = 8 ~ 11 最大单位是亿 * pos / 4 的整数就是最大单位 * */ export declare function getAmountChinese(val: number): string; export declare function thousandsFormat(num: string | number): string; export declare function getDateTimeUnit(format: string): "year" | "month" | "day" | "minute"; /** * 将用户输入的连续单个数字合并为一个数 * @param {Array} expressions - 记录计算表达式的数组 * @returns {Array} 新的数组 */ export declare const mergeNumberOfExps: (expressions: Array) => Array; /** * 中缀转后缀(逆波兰 Reverse Polish Notation) * @param {Array} exps - 中缀表达式数组 */ export declare const toRPN: (exps: Array) => any[]; export declare const calcRPN: (rpnExps: any[]) => any;