import { DateAdapter } from "./adapter.mjs"; //#region src/composables/useDate/adapters/plain.d.ts declare class V0PlainDateAdapter extends DateAdapter { private _locale; private _firstDayOfWeek; private _minimalDays; private formatCache; private numberFormatCache; constructor(locale?: string); get locale(): string; get firstDayOfWeek(): number; set locale(value: string); set firstDayOfWeek(value: number); /** * @remarks * No argument: the current time in the browser, or local `1970-01-01` * on the server. A `Date` is copied. A `YYYY-MM-DD` string is that * local calendar day. */ date(value?: unknown): Date | null; toJsDate(value: Date): Date; parseISO(dateString: string): Date; /** `YYYY-MM-DD` from local calendar fields. Time is dropped. Years below 1000 pad to 4 digits. */ toISO(date: Date): string; /** `format` is ignored. Parsing goes through `date()`. */ parse(value: string, _format: string): Date | null; isValid(date: unknown): date is Date; isNullish(value: Date | null): value is null; getCurrentLocaleCode(): string; is12HourCycleInCurrentLocale(): boolean; format(date: Date, formatString: string): string; formatByString(date: Date, formatString: string): string; getFormatHelperText(format: string): string; formatNumber(numberToFormat: string): string; getMeridiemText(ampm: 'am' | 'pm'): string; startOfDay(date: Date): Date; endOfDay(date: Date): Date; startOfWeek(date: Date): Date; endOfWeek(date: Date): Date; startOfMonth(date: Date): Date; endOfMonth(date: Date): Date; startOfYear(date: Date): Date; endOfYear(date: Date): Date; addSeconds(date: Date, amount: number): Date; addMinutes(date: Date, amount: number): Date; addHours(date: Date, amount: number): Date; /** * Calendar days, not elapsed milliseconds. A DST transition does not * drop or repeat a date. */ addDays(date: Date, amount: number): Date; addWeeks(date: Date, amount: number): Date; /** Clamps the day to the target month. January 31 plus one month is February 28 or 29. */ addMonths(date: Date, amount: number): Date; addYears(date: Date, amount: number): Date; isAfter(date: Date, comparing: Date): boolean; isAfterDay(date: Date, comparing: Date): boolean; isAfterMonth(date: Date, comparing: Date): boolean; isAfterYear(date: Date, comparing: Date): boolean; isBefore(date: Date, comparing: Date): boolean; isBeforeDay(date: Date, comparing: Date): boolean; isBeforeMonth(date: Date, comparing: Date): boolean; isBeforeYear(date: Date, comparing: Date): boolean; isEqual(date: Date, comparing: Date): boolean; isSameDay(date: Date, comparing: Date): boolean; isSameMonth(date: Date, comparing: Date): boolean; isSameYear(date: Date, comparing: Date): boolean; isSameHour(date: Date, comparing: Date): boolean; isWithinRange(date: Date, [start, end]: [Date, Date]): boolean; getYear(date: Date): number; /** 0-indexed, matching `Date#getMonth`. */ getMonth(date: Date): number; getDate(date: Date): number; getHours(date: Date): number; getMinutes(date: Date): number; getSeconds(date: Date): number; getDiff(date: Date, comparing: Date | string, unit?: string): number; getWeek(date: Date, minimalDays?: number): number; getDaysInMonth(date: Date): number; setYear(date: Date, year: number): Date; /** `month` is 0-indexed. The day clamps to that month. */ setMonth(date: Date, month: number): Date; setDate(date: Date, day: number): Date; setHours(date: Date, hours: number): Date; setMinutes(date: Date, minutes: number): Date; setSeconds(date: Date, seconds: number): Date; getWeekdays(format?: 'long' | 'short' | 'narrow'): string[]; getWeekArray(date: Date, fixedWeeks?: boolean): Date[][]; getMonthArray(date: Date): Date[]; getYearRange(start: Date, end: Date): Date[]; getNextMonth(date: Date): Date; getPreviousMonth(date: Date): Date; mergeDateAndTime(date: Date, time: Date): Date; private invalid; /** * Signed calendar-day order. String order on `toISO` inverts years * whose digit counts differ. */ private dayOrder; /** `Math.trunc` of a negative fraction is `-0`, and `Object.is` keeps it. */ private whole; private orderSign; /** Signed clock order. A DST gap must not change this through `getTime`. */ private timeOrder; /** * Complete months, matching `Temporal.PlainDateTime.since`. * * The start day is compared as a number, so February never reaches day * 29–31. When the date and the clock move the same way, the start loses * one calendar day first. `addMonths` would clamp that day, and `getTime` * would treat a spring-forward gap as a later clock. */ private monthDiff; /** * UTC instant for an offset string. `new Date(string)` overflows an * impossible day instead of rejecting it. */ private instant; /** Local calendar day. Rejects a day the month does not contain. */ private civil; /** * Local calendar fields. The `Date` constructor and `Date.UTC` add 1900 * when the year is 0–99. `setFullYear` does not. */ private stamp; /** Four digits for years 0–9999. `padStart` would rewrite a negative year. */ private yearText; /** * UTC day index, so a DST shift cannot change a day diff. * `Date.UTC` maps years 0–99 onto 1900–1999. */ private dayNumber; private getFormatter; private getNumberFormatter; } //#endregion export { V0PlainDateAdapter as PlainDateAdapter, V0PlainDateAdapter };