/** * 周名称映射类型 */ export type WeekdayNames = Record | [string, string, string, string, string, string, string]; /** * 日期格式化选项接口 */ export interface DateFormatOptions { /** * 时区设置 * @default 'local' */ timeZone?: 'local' | 'utc'; /** * 语言环境 * @default 'zh-CN' */ locale?: string; /** * 格式化模式 * @default 'auto' */ mode?: DateFormatMode; /** * 自定义格式化处理器 */ customFormatters?: Record string>; /** * 周名称映射,可以是完整映射或仅当前语言的映射 */ weekdayNames?: WeekdayNames; } /** * 日期格式化模式 */ export type DateFormatMode = 'compile' | 'regular' | 'auto'; /** * 支持的格式化标记 */ export type DateFormatToken = 'YYYY' | 'YY' | 'MMMM' | 'MMM' | 'MM' | 'M' | 'DDD' | 'DD' | 'D' | 'HH' | 'H' | 'hh' | 'h' | 'mm' | 'm' | 'ss' | 's' | 'SSS' | 'S' | 'A' | 'a' | 'dd' | 'd' | 'WW' | 'W' | 'Q' | 'X' | 'x'; /** * 可接受的日期输入类型 */ export type DateInput = Date | string | number | null | undefined; //# sourceMappingURL=date.d.ts.map