import { DateAdapter } from './date-adapter.ts'; export declare class TemporalDateAdapter extends DateAdapter { /** * @param cutoffYearOffset The threshold on whether a two-digit year * should be treated as belonging to 2000 or 1900. e.g. with 15 (default) * the current year plus 15 will be treated as belonging to 2000, and the rest to 1900. * So e.g. with the current year 2025, 40 will be treated as 2040, while 41 will be treated as 1941. */ constructor(cutoffYearOffset?: number); /** Gets the year of the input date. */ getYear(date: Temporal.PlainDate): number; /** Gets the month of the input date. */ getMonth(date: Temporal.PlainDate): number; /** Gets the day of the input date. */ getDate(date: Temporal.PlainDate): number; /** Gets the day of the week of the input date. */ getDayOfWeek(date: Temporal.PlainDate): number; /** Gets the date in the local format. */ getAccessibilityFormatDate(date: Temporal.PlainDate | string): string; /** * Creates an array of strings with length = 12, filled with the name of the months starting from January, in the document language. * @param style See `month` in `DateTimeFormatOptions`: `long` for full name, `short` for short name, `narrow` for single letter, * E.g., with January in en-gb: `long` returns "January", `short` returns "Jan", `narrow` returns "J". */ getMonthNames(style: 'long' | 'short' | 'narrow'): string[]; /** Creates a string array with length = 31, filled with the days in a month, starting from 1. */ getDateNames(): string[]; /** * Creates a string array with length = 7, filled with the name of the days in a week starting from Sunday, in the document language. * @param style See `weekday` in `DateTimeFormatOptions` - 'long' for full name, 'short' for short name, 'narrow' for single letter; * E.g., with Monday in en-gb: `long` returns "Monday", `short` returns "Mon", `narrow` returns "M". */ getDayOfWeekNames(style: 'long' | 'short' | 'narrow'): string[]; /** Defines which is the first day of the week (0: sunday; 1: monday; etc.). */ getFirstDayOfWeek(): number; /** Calculates the number of days in a month given the year and the month. */ getNumDaysInMonth(date: Temporal.PlainDate): number; /** Creates today's date. */ today(): Temporal.PlainDate; /** Creates a new date, given day, month and year; the method doesn't allow date's overflow. */ createDate(year: number, month: number, day: number): Temporal.PlainDate; /** Checks whether the given `obj` is a Temporal.PlainDate. */ isDateInstance(obj: any): boolean; /** Checks whether the given `date` is a valid Temporal.PlainDate. */ isValid(date: Temporal.PlainDate | null | undefined): date is Temporal.PlainDate; /** Creates a new date by cloning the given one. */ clone(date: Temporal.PlainDate): Temporal.PlainDate; /** * Creates a new date adding the number of provided `years` to the provided `date`. * @param date The starting date. * @param years The number of years to add. */ addCalendarYears(date: Temporal.PlainDate, years: number): Temporal.PlainDate; /** * Creates a new date adding the number of provided `months` to the provided `date`. * If the calculated month has fewer days than the original one, the date is set to the last day of the month. * E.g., with `date` = new Temporal.PlainDate(2022, 0, 31) and `months` = 1, it returns new Temporal.PlainDate(2022, 1, 28). */ addCalendarMonths(date: Temporal.PlainDate, months: number): Temporal.PlainDate; /** Creates a new date by adding the number of provided `days` to the provided `date`. */ addCalendarDays(date: Temporal.PlainDate, days: number): Temporal.PlainDate; /** Creates a Temporal.PlainDate from a valid input (Temporal.PlainDate or ISO string). */ deserialize(date: Temporal.PlainDate | string | null | undefined): Temporal.PlainDate | null; invalid(): Temporal.PlainDate; toIso8601(date: Temporal.PlainDate): string; /** * Creates an array with the given length and fills it by mapping with the provided function. * @param length The length of the array to be created. * @param valueFunction The function of array's index used to fill the array. */ private _range; } //# sourceMappingURL=temporal-date-adapter.d.ts.map