import dayjs from 'dayjs'; import 'dayjs/locale/en-gb'; /** * Maps BCP-47 tags to dayjs locale ids (lowercase, e.g. `fr-FR` → `fr-fr`). * English variants map to dayjs bundles: `en-US` → `en`, `en-GB` → `en-gb`. * @public */ export declare function resolveDayjsLocale(lang: string): string; /** * Browser BCP-47 locale (e.g. `en-GB`), or `en` when unavailable (SSR/tests). * @public */ export declare function getBrowserLocale(): string; /** * Display format from dayjs locale `L` (e.g. en / en-US → MM/DD/YYYY, en-gb → DD/MM/YYYY). * Falls back to `en` when the locale is not loaded in dayjs (import the matching `dayjs/locale/*` bundle). * @public */ export declare function getDisplayFormatForLang(lang?: string): string; /** * Maps a dayjs-style display format to a lowercase placeholder hint (e.g. DD/MM/YYYY → dd/mm/yyyy). * @public */ export declare function formatToPlaceholder(format: string): string; export declare function hasDateValue(value: string | null | undefined): boolean; /** * Internal wire format for the date picker's `value` attribute. * Display formatting is independent (see `format` / `getDisplayFormatForLang`). * @public */ export declare const DATE_PICKER_VALUE_FORMAT = "MM-DD-YYYY"; /** * Strictly parses a date picker value (`displayFormat` or internal `DATE_PICKER_VALUE_FORMAT`). Returns null when invalid. * @public */ export declare function parseDatePickerValue(dateString: string, displayFormat: string): dayjs.Dayjs | null; //# sourceMappingURL=date-picker.util.d.ts.map