@codecademy/gamut

68.3.068.3.1-alpha.a2040c.0
dist/DatePicker/utils/locale.d.ts
+dist/DatePicker/utils/locale.d.tsNew file
+27
Index: package/dist/DatePicker/utils/locale.d.ts
===================================================================
--- package/dist/DatePicker/utils/locale.d.ts
+++ package/dist/DatePicker/utils/locale.d.ts
@@ -0,0 +1,27 @@
+import '@formatjs/intl-locale/polyfill.js';
+/**
+ * The runtime default locale string (user agent), matching what `Intl` uses when no locale is passed.
+ */
+export declare const getDefaultLocaleTag: () => string;
+/**
+ * Resolves `Intl.LocalesArgument` (or `undefined`) to a stable `Intl.Locale` instance for formatting
+ * and locale metadata.
+ *
+ * - `undefined` → default runtime locale via {@link getDefaultLocaleTag}
+ * - `Intl.Locale` → returned as-is (no duplicate allocation)
+ * - `string` / `readonly string[]` → `new Intl.Locale(...)`
+ */
+export declare const resolveLocale: (locales?: Intl.LocalesArgument) => Intl.Locale;
+export declare const useResolvedLocale: (locale?: Intl.LocalesArgument) => Intl.Locale;
+export declare const stringifyLocale: (locale: Intl.Locale) => string;
+/** ISO weekday: 1 = Monday … 7 = Sunday (matches `Intl.Locale#getWeekInfo().firstDay`). */
+export type IsoWeekday = 1 | 2 | 3 | 4 | 5 | 6 | 7;
+/**
+ * First calendar column weekday from `locale` (via `getWeekInfo()`), or explicit override.
+ */
+export declare const getIsoFirstDayFromLocale: (locale: Intl.Locale, weekStartsOnOverride?: IsoWeekday) => IsoWeekday;
+/**
+ * Resolved first weekday for the calendar grid. Re-reads after mount so async polyfills
+ * (e.g. Firefox) can install `getWeekInfo` before the first paint in some bundles.
+ */
+export declare const useIsoFirstWeekday: (locale: Intl.Locale, weekStartsOnOverride?: IsoWeekday) => IsoWeekday;