declare enum DATE_FORMATS { LOCALE_DATE = "LOCALE_DATE", DD_MM = "DD_MM", YYYY_MM_DD = "YYYY_MM_DD", DAY_DD_MM_YYYY = "DAY_DD_MM_YYYY", DAY_DD_MM_YY_COMPACT = "DAY_DD_MM_YY_COMPACT", MM_YY_COMPACT = "MM_YY_COMPACT", HH_MM_AM_PM = "HH_MM_AM_PM", HH_MM_SS_AM_PM = "HH_MM_SS_AM_PM" } /** * Formats a date string into the specified DATE_FORMATS format. * @param str - A date string parsable by Date constructor. * @param format - The target DATE_FORMATS format. Available formats: * - LOCALE_DATE: locale-specific date, e.g. "3/19/2021" * - DD_MM: day and full month name, e.g. "19 March" * - YYYY_MM_DD: numeric year-month-day, e.g. "2021-03-19" * - DAY_DD_MM_YYYY: day name, day, full month and year, e.g. "Friday, 19 March 2021" * - DAY_DD_MM_YY_COMPACT: compact day name, day, full month and two-digit year, e.g. "Fri, 19 March 21" * - MM_YY_COMPACT: three-letter month and two-digit year, e.g. "Mar 21" * - HH_MM_AM_PM: hours and minutes with AM/PM, e.g. "04:31 PM" * - HH_MM_SS_AM_PM: hours, minutes and seconds with AM/PM, e.g. "04:31:20 PM" * @returns The formatted date string. */ declare const formatDate: (str: string, format: DATE_FORMATS) => string; export { DATE_FORMATS, formatDate };