import { t as Adapter } from "./adapter.types-CDV9mYni.js"; import { DateTime } from "luxon"; //#region src/adapter/luxon-adapter.d.ts /** Backed by Luxon `DateTime`. Translates between Luxon's 1-indexed months * and the adapter's 0-indexed convention. See {@link Adapter.IDateAdapter}. */ declare class LuxonAdapter implements Adapter.IDateAdapter { today(): DateTime; /** Luxon uses 1-indexed months, so we add 1. */ create(year: number, month: number, day: number): DateTime; isValid(date: DateTime): boolean; isSameDay(a: DateTime, b: DateTime): boolean; isSameMonth(a: DateTime, b: DateTime): boolean; isBefore(a: DateTime, b: DateTime): boolean; isAfter(a: DateTime, b: DateTime): boolean; startOfMonth(date: DateTime): DateTime; /** Strips time so the boundary stays comparable with other adapters' midnight dates. */ endOfMonth(date: DateTime): DateTime; /** * Luxon weekday: 1=Monday ... 7=Sunday. * Adapter weekStartDay: 0=Sunday ... 6=Saturday. */ startOfWeek(date: DateTime, weekStartDay: Adapter.WeekStartDay): DateTime; addDays(date: DateTime, count: number): DateTime; addMonths(date: DateTime, count: number): DateTime; addYears(date: DateTime, count: number): DateTime; getYear(date: DateTime): number; /** Luxon months are 1-indexed; subtract 1 for the adapter's 0-indexed contract. */ getMonth(date: DateTime): number; getDate(date: DateTime): number; /** Luxon weekday is 1=Monday ... 7=Sunday; `% 7` maps Sunday to 0. */ getDayOfWeek(date: DateTime): Adapter.WeekStartDay; toDate(date: DateTime): Date; fromDate(date: Date): DateTime; format(date: DateTime, options: Intl.DateTimeFormatOptions, locale?: string): string; getHours(date: DateTime): number; getMinutes(date: DateTime): number; getSeconds(date: DateTime): number; setTime(date: DateTime, hour: number, minute: number, second?: number): DateTime; } //#endregion export { LuxonAdapter as t };