/** Types */ export type CalendarMode = 'year' | 'month' | 'week' | 'day' | 'quarter' | 'half-year'; /** ISO 8601 text */ export type DateType = string; /** Classes */ export declare const calendarPrefix = "mzn-calendar"; export declare const calendarMainPrefix = "mzn-calendar-main"; export declare const calendarBoardPrefix = "mzn-calendar-board"; export declare const calendarWeekPrefix = "mzn-calendar-week"; export declare const calendarDaysGridPrefix = "mzn-calendar-days-grid"; export declare const calendarRowPrefix = "mzn-calendar-row"; export declare const calendarCellPrefix = "mzn-calendar-cell"; export declare const calendarButtonPrefix = "mzn-calendar-button"; export declare const calendarTwelveGridPrefix = "mzn-calendar-twelve-grid"; export declare const calendarControlsPrefix = "mzn-calendar-controls"; export declare const calendarFooterControlPrefix = "mzn-calendar-footer-control"; export declare const calendarFooterActionsPrefix = "mzn-calendar-footer-actions"; export declare const calendarQuickSelectPrefix = "mzn-calendar-quick-select"; export declare const calendarClasses: { host: string; noShadowHost: string; mode: (mode: CalendarMode) => string; mainWithFooter: string; mainRangeCalendarWrapper: string; main: string; /** Date grid classes */ board: string; week: string; weekRow: string; daysGrid: string; /** Button classes */ button: string; buttonAnnotation: string; buttonActive: string; buttonDisabled: string; buttonInRange: string; buttonInactive: string; /** Row classes */ row: string; rowWithBorder: string; /** Cell classes */ cell: string; cellMode: (mode: CalendarMode) => string; cellInner: string; cellWeekend: string; cellToday: string; cellActive: string; cellDisabled: string; cellWithAnnotation: string; cellRangeStart: string; cellRangeEnd: string; /** Twelve grid classes */ twelveGrid: string; /** Controls classes */ controls: string; controlsActions: string; controlsButton: string; controlsMain: string; /** Footer control classes */ footerControl: string; footerActions: string; /** Quick select classes */ quickSelect: string; quickSelectButton: string; quickSelectButtonActive: string; }; /** Constants */ export declare const calendarYearsBase: number[]; export declare const calendarYearModuler = 20; export declare const calendarMonths: number[]; export declare const calendarQuarters: number[]; export declare const calendarQuarterYearsCount = 5; export declare const calendarHalfYears: number[]; export declare const calendarHalfYearYearsCount = 5; /** Helpers */ export declare function getYearRange(year: number, mod: number): number[]; export declare function getCalendarYearRange(year: number): number[]; /** * Locales that follow ISO 8601 week rules — Monday is the first day of week * AND week 1 contains at least 4 days of the new year (`minimalDays = 4`). * * Audited against `Intl.Locale#weekInfo` (CLDR). Entries previously listed * here that disagree with CLDR were removed: * - `pt-pt`, `pt` → Sunday-first per CLDR (was emitting wrong week * boundaries for Portuguese) * - `he-il`, `he` → Sunday-first per CLDR * - `ar-sa`, `ar` → Sunday-first / Saturday-first per CLDR * - `en-au`, `en-nz` → Monday-first BUT minimalDays=1, NOT ISO * - `ro-ro`, `ro`, `sl-si`, `sl`, `hr-hr`, `hr`, `tr-tr`, `tr`, * `uk-ua`, `uk`, `lv-lv`, `lv` → Monday-first BUT minimalDays=1 * * The Temporal adapter consumes `Intl.Locale#weekInfo` directly (see * `usesISOWeekRules` in calendarMethodsTemporal). The dayjs/moment * adapters still use this static set; the removals above also fix * silent format/getWeek divergences in those adapters for the affected * locales when CLDR data is the desired source of truth. */ export declare const ISO_WEEK_LOCALES: Set; /** * Check if a locale uses ISO week (Monday as first day of week) */ export declare function isISOWeekLocale(locale: string): boolean; export declare function getDefaultModeFormat(mode: CalendarMode, locale?: string): "GGGG-[W]WW" | "gggg-[W]ww" | "YYYY-MM" | "YYYY" | "YYYY-[Q]Q" | "YYYY-[H]n" | "YYYY-MM-DD";