import type { FormatTemplate } from '../../mod.js'; /** ## `now` : 获取当前时间戳或格式化时间字符串 + 提供两种调用方式: 1. 无参数时返回当前Unix时间戳(秒级) 2. 传入格式化模板时返回格式化后的时间字符串 + 特殊处理:当模板为'ISO8601'时使用dayjs默认ISO格式 @example 获取时间戳 ```ts const timestamp = now() // 返回当前时间戳如 1672531200 ``` @example 格式化时间 ```ts const dateStr = now('YYYY-MM-DD') // 返回如 '2023-01-01' const isoStr = now('ISO8601') // 返回ISO格式时间如 '2023-01-01T00:00:00Z' ``` @category Date */ export declare function now(): number; export declare function now(template: FormatTemplate): string; //# sourceMappingURL=now.d.ts.map