import { EventEmitter, OnInit, TrackByFunction } from '@angular/core'; import { BooleanInput } from '@angular/cdk/coercion'; import { CalendarDate, DateValue } from '@internationalized/date'; import { CalendarView } from './shared/calendar-view'; import { SingleSelectionCalendarDirective } from './shared/single-selection-calendar.directive'; import * as i0 from "@angular/core"; import * as i1 from "./shared/single-selection-calendar.directive"; export { SingleSelectionCalendarDirective }; export interface PredefinedDate { label: string; date: DateValue; } /** * Calendar is accessible as a grid. Supports single date selection with min/max constraints, * unavailable dates, week numbers, multiple view months, and locale configuration. */ export declare class CalendarComponent

implements OnInit { readonly localeFromContext: string; readonly _calendar: SingleSelectionCalendarDirective; /** * Whether to show the week numbers in days view. */ showWeekNumbers?: BooleanInput; /** * A set of predefined dates that the user can more conveniently select. */ predefinedDates?: Record; /** * Emits when the currently selected date changes by user interactions. * If the "predefinedDateKey" is not necessary, you can use `valueChange` * output which allows for two-way binding (`[(value)]="..."`) */ change: EventEmitter<{ value: DateValue; predefinedDateKey?: P | undefined; }>; /** * Emits when the view changes by user interactions. * Emits CalenderView, to allow for two-way binding (`[(view)]="..."`). */ viewChange: EventEmitter; private selectedPredefinedDateKey?; constructor(localeFromContext: string, _calendar: SingleSelectionCalendarDirective); ngOnInit(): void; readonly _trackByIndex: TrackByFunction; selectPredefinedDate(p: P): void; _getPredefinedDates(): { key: P; value: PredefinedDate; }[]; setView(view: CalendarView): void; setFocusedDate(date: DateValue): void; getTimezone(): string; selectDate(date: CalendarDate): void; static ɵfac: i0.ɵɵFactoryDeclaration, never>; static ɵcmp: i0.ɵɵComponentDeclaration, "sp-calendar", never, { "showWeekNumbers": "showWeekNumbers"; "predefinedDates": "predefinedDates"; }, { "change": "change"; "viewChange": "viewChange"; }, never, never, true, [{ directive: typeof i1.SingleSelectionCalendarDirective; inputs: { "autoFocus": "autoFocus"; "showFixedWeeks": "showFixedWeeks"; "isDateUnavailable": "isDateUnavailable"; "focusedDate": "focusedDate"; "locale": "locale"; "minValue": "minValue"; "maxValue": "maxValue"; "value": "value"; "readonly": "readonly"; "disabled": "disabled"; "size": "size"; "view": "view"; }; outputs: { "blurred": "blurred"; "valueChange": "valueChange"; }; }]>; }