import * as moment from 'moment'; /** * 转化成RMB元字符串 */ export declare function yuan(value: any): string; /** * 不满两位数自动填充 `0` * @param val 数值 */ export declare function fixedZero(val: any): any; /** * 获取时间范围 * @param type 类型 * @param time 开始时间 */ export declare function getTimeDistance(type: 'today' | 'week' | 'month' | 'year', time?: Date): moment.Moment[]; /** * 类似 `_.get`,根据 `path` 获取安全值 * jsperf: https://jsperf.com/es-deep-get */ export declare function deepGet(obj: any, path: string[], defaultValue: any): any; export declare function deepCopy(obj: any): any;