import * as _angular_core from '@angular/core'; /** A weekday, positioned by `priority` (1 = first column of the grid). */ interface CalendarDay { longName: string; symbol: string; /** 1-7, where 1 is the leftmost column of the calendar grid. */ priority: number; } interface CalendarLocale { direction: 'ltr' | 'rtl'; /** Month names, January first. */ months: readonly string[]; /** Exactly seven weekdays. */ days: readonly CalendarDay[]; /** * Weekday the grid starts on, using the JavaScript convention where 0 is * Sunday. Must line up with the `days` ordering. Defaults to Monday. */ firstDayOfWeek?: number; } /** A date the calendar should treat as selectable, with optional payload. */ interface AvailableDate { /** ISO `YYYY-MM-DD`. */ date: string; [key: string]: unknown; } /** A weekday the calendar should treat as selectable, with optional payload. */ interface AvailableWeekDay { /** * Either 0-6 (`Date.prototype.getDay`, 0 = Sunday) or the weekday's * `longName` as spelled in the active locale. */ day: number | string; [key: string]: unknown; } /** Emitted when the user picks a date. */ interface CalendarSelection { /** The selected date, at local midnight. */ date: Date; /** Payload from the matching `availableDates` / `availableWeekDays` entry. */ data?: AvailableDate | AvailableWeekDay; } /** One cell of the month grid. `date` is null for the leading blanks. */ interface CalendarCell { key: string; date: Date | null; dayOfMonth: number; selectable: boolean; selected: boolean; today: boolean; data?: AvailableDate | AvailableWeekDay; } declare class NgxModernCalendarComponent { /** Built-in locale code: `en`, `es`, `fr`, `he` or `hi`. Unknown codes fall back to `en`. */ readonly language: _angular_core.InputSignal; /** Supply a full locale to go beyond the built-in five. Wins over `language`. */ readonly locale: _angular_core.InputSignal; /** Dates to render as selected. */ readonly selectedDates: _angular_core.InputSignal; /** Restrict selectable days to `availableDates` / `availableWeekDays`. */ readonly datesFilter: _angular_core.InputSignal; /** Allow selecting days before today. */ readonly pastDates: _angular_core.InputSignal; /** Specific selectable dates, used when `datesFilter` is on. */ readonly availableDates: _angular_core.InputSignal; /** Selectable weekdays, used when `datesFilter` is on. */ readonly availableWeekDays: _angular_core.InputSignal; /** Override the locale's first day of week (0 = Sunday). */ readonly firstDayOfWeek: _angular_core.InputSignal; /** Emits the picked date together with any payload attached to it. */ readonly dateSelected: _angular_core.OutputEmitterRef; /** Emits the first of the month whenever the visible month changes. */ readonly monthChanged: _angular_core.OutputEmitterRef; /** First of the currently displayed month. */ private readonly viewDate; private readonly today; private readonly activeLocale; protected readonly direction: _angular_core.Signal<"ltr" | "rtl">; protected readonly weekdays: _angular_core.Signal; private readonly weekStart; protected readonly monthLabel: _angular_core.Signal; protected readonly previousMonthLabel: _angular_core.Signal; protected readonly nextMonthLabel: _angular_core.Signal; private readonly selectedKeys; private readonly availableDatesByKey; protected readonly cells: _angular_core.Signal; /** Move the visible month. Positive moves forward. */ goToMonth(offset: number): void; goToPreviousMonth(): void; goToNextMonth(): void; /** Jump the view to the month containing `date`. */ showMonthOf(date: Date): void; protected select(cell: CalendarCell): void; private adjacentMonthLabel; private matchAvailability; /** `day` may be a 0-6 index or the weekday's `longName` in the active locale. */ private matchesWeekDay; private isSelectable; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵcmp: _angular_core.ɵɵComponentDeclaration; } declare const engLocale: CalendarLocale; declare const esLocale: CalendarLocale; declare const frLocale: CalendarLocale; declare const heLocale: CalendarLocale; declare const hiLocale: CalendarLocale; export { NgxModernCalendarComponent, engLocale, esLocale, frLocale, heLocale, hiLocale }; export type { AvailableDate, AvailableWeekDay, CalendarDay, CalendarLocale, CalendarSelection };