/** * Format a date using token-based format strings. * * Supported tokens: * - YYYY: 4-digit year * - YY: 2-digit year * - MMMM: Full month name (January) * - MMM: Short month name (Jan) * - MM: 2-digit month (01-12) * - M: Month (1-12) * - DD: 2-digit day (01-31) * - D: Day (1-31) * - dddd: Full weekday name (Wednesday) * - ddd: Short weekday name (Wed) * - d: Narrow weekday (W) * - HH: 24-hour padded (00-23) * - H: 24-hour (0-23) * - hh: 12-hour padded (01-12) * - h: 12-hour (1-12) * - mm: Minutes padded (00-59) * - m: Minutes (0-59) * - ss: Seconds padded (00-59) * - s: Seconds (0-59) * - A: AM/PM * - a: am/pm * - Z: Timezone offset (+0800) * * @param inputDate - A Date object or ISO 8601 string * @param formatStr - Token-based format string (default: 'YYYY-MM-DD') * @param localeOrOptions - A locale string or options object with locale and tz (IANA timezone) */ export declare function format(inputDate: DateInput, formatStr?: string, localeOrOptions?: string | FormatOptions): string; declare interface FormatOptions { locale?: string tz?: string } declare type DateInput = Date | string;