import { Temporal } from '@js-temporal/polyfill-patched'; import { Month } from '../constants/months'; import { PickerOptions, SupportedCalendar } from '../types'; import { AnyPlainDate } from './plainDate'; export declare const isCustomCalendar: (calendar: string) => boolean; export declare const padWithZeroes: (number: number, count?: number) => string; type DayType = 'endOfMonth' | 'startOfMonth'; export declare const formatDate: (date: AnyPlainDate, dayType?: DayType, format?: string) => string; export declare const capitalize: ([firstLetter, ...rest]: string, locale?: string) => string; /** * Constructs a date value in `calendar` from that calendar's own year/month/day * fields (e.g. Nepali fields for 'nepali', or era/eraYear fields for * Ethiopic). Custom calendars never use the era/eraYear form, so it's safe * to read `fields.year` directly when a custom implementation exists. */ export declare const getPlainDateFromCalendarFields: (fields: Temporal.PlainDateLike, calendar: SupportedCalendar, options?: Temporal.AssignmentOptions) => AnyPlainDate; /** Re-interprets an ISO year/month/day in `calendar` (e.g. converts "today, ISO" into "today, Nepali"). */ export declare const getPlainDateFromIso: (isoFields: { year: number; month: number; day: number; }, calendar: SupportedCalendar) => AnyPlainDate; export declare const extractAndValidateDateString: (date: string, options: PickerOptions & { minDateString?: string; maxDateString?: string; strictValidation?: boolean; format?: "YYYY-MM-DD" | "DD-MM-YYYY"; }) => Temporal.PlainDateLike; export declare const getMonthsForCalendar: (calendarType: string) => Month[]; export {};