import 'dayjs/locale/ar'; import 'dayjs/locale/ca'; import 'dayjs/locale/cs'; import 'dayjs/locale/da'; import 'dayjs/locale/de'; import 'dayjs/locale/el'; import 'dayjs/locale/en'; import 'dayjs/locale/es'; import 'dayjs/locale/fi'; import 'dayjs/locale/fr'; import 'dayjs/locale/hr'; import 'dayjs/locale/hu'; import 'dayjs/locale/it'; import 'dayjs/locale/he'; import 'dayjs/locale/ja'; import 'dayjs/locale/kk'; import 'dayjs/locale/ko'; import 'dayjs/locale/nl'; import 'dayjs/locale/nb'; import 'dayjs/locale/pl'; import 'dayjs/locale/pt'; import 'dayjs/locale/pt-br'; import 'dayjs/locale/ro'; import 'dayjs/locale/ru'; import 'dayjs/locale/sk'; import 'dayjs/locale/sl'; import 'dayjs/locale/sv'; import 'dayjs/locale/th'; import 'dayjs/locale/tr'; import 'dayjs/locale/uk'; import 'dayjs/locale/zh'; import 'dayjs/locale/zh-tw'; /** * Ensure that the locale is the correct DayJs locale. * @param locale string representing the locale coming from DX Core * @returns string that can be used with DayJs */ export declare const mappingLocaleFromCoreToDayJs: (locale?: string) => string; /** * Date utility to format date from a Unix timestamp * * @param date Unix timestamp in milliseconds * @param locale string representing the locale (default is 'en') * @returns formatted date string using dayjs */ export declare const formatDateTime: (date?: number | string | undefined, locale?: string) => string; /** * * @param locale string representing the locale * @returns Array of localized month names */ export declare const getLocalizedMonths: (locale?: string) => string[]; /** * * @param locale string representing the locale * @returns Array of localized days of the week */ export declare const getLocalizedDays: (locale?: string) => string[]; /** * Date utility to format date from an MM/DD/YYYY format to its localized format * * @param date string in MM/DD/YYYY format * @param locale string representing the locale (default is 'en') * @returns formatted date string using dayjs */ export declare const formatDate: (date?: number, format?: string) => string; /** * Date utility to get the accepted date format for a given locale. * * @param locale string representing the locale * @returns string representing the accepted date format for the given locale */ export declare const getAcceptedDateFormat: (locale?: string) => string; /** * Date utility to get all accepted date formats for all supported locales. * * @returns Array of accepted date formats for all supported locales */ export declare const getAllAcceptedDateFormats: () => string[]; export declare const UNIQUE_SUPPORTED_DATE_FORMATS: string[]; /** * Date utility to format a partial date input based on the accepted format. * * @param date string representing the date input * @param format string representing the accepted format * @returns formatted date string based on the accepted format */ export declare const formatPartialDateInputWithAcceptedFormat: (date: string, format: string) => string; /** * Date utility to get the regex for an accepted date format. * * @param format string representing the accepted date format * @returns string representing the regex for the accepted date format */ export declare const getRegexForAcceptedDateFormat: (format: string) => string; /** * Date utility to get the Unix timestamp in milliseconds from a date string. * * @param date string representing the date * @returns number representing the Unix timestamp in milliseconds or an empty string if the date is invalid */ export declare const getUnixTimestampMilliseconds: (date: string) => number; /** * Date utility to parse a date string from an accepted format. * * @param date string representing the date * @param format string representing the accepted format * @returns object containing day, month, year, and delimiter */ export declare const parseDateFromAcceptedFormat: (date: string, format: string) => { dd: number; mm: number; yr: number; delimiter: string; }; /** * Date utility to correct the end date for the same date filter. * * @param dateEnd string representing the end date * @returns string representing the corrected end date */ export declare const correctDateEndForDatePickerFilter: (dateEnd: string) => string;