/** 可读化时差 (date2 - date1) * @param options.fuzzy 模糊化大于“天”以内内的时间,都显示为 “不久前”,如 “40 分钟” 前会显示为 “不久前” * @example * readableDateDiff(new Date(), new Date('2020-01-01')) // 1 年前 * readableDateDiff(new Date(), new Date('2020-01-01')) // 12 天前 * readableDateDiff(new Date(), new Date('2020-01-01')) // 3 月前 * */ declare const I18N: { zh: { y: string; M: string; d: string; h: string; m: string; s: string; ss: string; fuzzy: string; _y: string; _M: string; _d: string; _h: string; _m: string; _s: string; _ss: string; _fuzzy: string; }; en: { y: string; M: string; d: string; h: string; m: string; s: string; fuzzy: string; _y: string; _M: string; _d: string; _h: string; _m: string; _s: string; _fuzzy: string; }; }; export declare function readableDateDiff(date1: Date | string, date2: Date | string, options?: { /** 模糊 */ fuzzy?: boolean; /** 模糊秒 */ fuzzySecond?: boolean; /** i18n 语言 */ i18n?: keyof typeof I18N; /** 在 10 秒误差内, 保证 date1 > date2,用于客户端之间时间误差不会出现当前时间小于目标时间的情况*/ ensureDate1Bigger?: boolean; }): any; export {}; //# sourceMappingURL=readableDateDiff.d.ts.map