import type { Dayjs } from 'dayjs'; import type { DateFormatConfig } from '../types'; /** * 格式化日期 * @param date dayjs 日期对象 * @param config 日期格式配置 * @returns 格式化后的日期字符串 * * @example * // 英文环境 * formatDate(dayjs(), { order: 'YMD', shortMonth: true, showYear: true }) * // => "2026-Mar-21" * * // 中文环境 * formatDate(dayjs(), { order: 'YMD', showChineseUnit: true, showYear: true }) * // => "2026年3月21日" * * formatDate(dayjs(), { order: 'MDY', shortMonth: false, showYear: true }) * // => "March 21, 2026" */ export declare function formatDate(date: Dayjs, config?: DateFormatConfig): string;