/** * 日期类型 * @type {string[]} */ export declare const dateTypes: string[]; /** * 创建日期 * @param val * @returns {string} */ export declare function createDate(val: any): string; /** * 当前日期 * @param split */ export declare function currentDate(split?: string): string; /** * 获取当月的开始和结束时间 */ export declare function currentMonthRange(): { startDate?: undefined; starDateStr?: undefined; lastDate?: undefined; lastDateStr?: undefined; } | { startDate: Date; starDateStr: string; lastDate: Date; lastDateStr: string; }; export declare function monthRange(date: Date): { startDate?: undefined; starDateStr?: undefined; lastDate?: undefined; lastDateStr?: undefined; } | { startDate: Date; starDateStr: string; lastDate: Date; lastDateStr: string; }; /** * 将日期解析为字符串 * @param date * @param needTime * @param split * @param needSecond */ export declare function dateParse(date: Date, needTime?: boolean, split?: string, needSecond?: boolean): string; /** * 创建年月日时分秒 * @param val * @param isDateTime * @param needSecond * @param split */ export declare function createDatetime(val: any, isDateTime?: boolean, needSecond?: boolean, split?: string): any; export declare function parseDateByType(val: any, type: string, subType?: string, needSecond?: boolean, split?: string): any; /** * 获取 el-date-picker 的默认 value-format(dayjs 格式) * value-format 决定了 v-model 绑定值的字符串格式 */ export declare function getDateValueFormat(subType: string): string; /** * 获取 el-date-picker 的默认显示 format(dayjs 格式) * format 决定了输入框中显示的文本格式 */ export declare function getDateDisplayFormat(subType: string): string; /** * 规范化日期/时间模型值,确保 el-date-picker / el-time-picker 能正确显示 * * 处理场景: * - ISO 字符串 "2026-06-09T16:00:00.000Z" * - 已格式化字符串 "2026-06-09"、"2026/06/09" * - 纯月份数字 "06" * - 纯时间字符串 "17:24:43" * - Date 对象 * - 范围数组 ["2026-06-09T16:00:00.000Z", "2026-07-08T16:00:00.000Z"] * - JSON 字符串数组 '[ "06", "11" ]' * * @param val 原始值 * @param subType 日期子类型(year/month/date/datetime/daterange 等) * @param valueFormat 目标 value-format(不传则根据 subType 自动推断) */ export declare function normalizeDateModel(val: any, subType: string, valueFormat?: string): any;