import { DayPeriodType } from '@phensley/cldr-types'; import { DateTimeNode } from '../../parsing/date'; import { Bundle } from '../../resource'; import { CalendarDate, CalendarType } from '../../systems/calendars'; import { AbstractValue } from '../../utils/render'; import { CalendarInternals, Internals } from '../internals'; import { CalendarContext, CalendarFormatter } from './formatter'; /** * Framework scoped calendar functions. * * @internal */ export declare class CalendarInternalsImpl implements CalendarInternals { private internals; private schema; private dayPeriodRules; private patternCache; private hourPatternCache; private calendarFormatterCache; private availableCalendars; constructor(internals: Internals, cacheSize: number); flexDayPeriod(bundle: Bundle, minutes: number): DayPeriodType | undefined; getCalendarFormatter(type: CalendarType): CalendarFormatter; parseDatePattern(raw: string): DateTimeNode[]; getHourPattern(raw: string, negative: boolean): DateTimeNode[]; weekFirstDay(region: string): number; weekMinDays(region: string): number; formatDateTime(calendar: CalendarType, ctx: CalendarContext, value: AbstractValue, first: boolean, date?: DateTimeNode[], time?: DateTimeNode[], wrapper?: string): R; formatInterval(calendar: CalendarType, ctx: CalendarContext, value: AbstractValue, first: boolean, end: CalendarDate, pattern: DateTimeNode[]): R; selectCalendar(bundle: Bundle, ca?: CalendarType): CalendarType; /** * Translates a string into a supported calendar type, or undefined if none match. */ private supportedCalendar; }