/** * 支持输入格式: * - `Date` * - number: timestamp * - string: 数字字符串(例如`"1234"`),ISO和日期字符串, */ export declare type ToDateType = Date | string | number; export declare const ISO8601_DATE_REGEX: RegExp; /** * 将值转换为日期对象 * @param value 传递要转换日期对象的值 * * 支持输入格式: * - `Date` * - number: timestamp * - string: 数字字符串(例如`"1234"`),ISO和日期字符串,其格式由 * [Date.parse()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/parse) * 注意:没有时间的ISO字符串返回没有时间偏移的日期。 * * 如果无法转换为日期,则抛出该异常。 */ export declare function toDate(value: ToDateType): Date; /** * 将ISO8601中的日期转换为日期。由于浏览器差异而使用,而不是`Date.parse` */ export declare function isoStringToDate(match: RegExpMatchArray): Date;