import { t as Adapter } from "./adapter.types-CDV9mYni.js"; //#region src/adapter/persian-adapter.d.ts /** Persian (Jalaali / Solar Hijri) calendar-aware adapter backed by native `Date`. */ declare class PersianAdapter implements Adapter.IDateAdapter { private readonly locale; constructor(locale?: string); today(): Date; /** * Creates a date from Persian calendar parts. * * @param year - Persian year (e.g. 1404) * @param month - **0-indexed** Persian month (0 = Farvardin, 11 = Esfand) * @param day - Day of the Persian month (1-31) */ create(year: number, month: number, day: number): Date; isValid(date: Date): boolean; /** Convert a native Date to its Jalaali parts (cached per-instance). */ private persian; getYear(date: Date): number; /** 0-indexed Persian month (0 = Farvardin). */ getMonth(date: Date): number; getDate(date: Date): number; isSameDay(a: Date, b: Date): boolean; /** Compares in Persian calendar space, not Gregorian. */ isSameMonth(a: Date, b: Date): boolean; isBefore(a: Date, b: Date): boolean; isAfter(a: Date, b: Date): boolean; /** First Gregorian day of the Persian month that contains `date`. */ startOfMonth(date: Date): Date; /** Last Gregorian day of the Persian month that contains `date`. */ endOfMonth(date: Date): Date; startOfWeek(date: Date, weekStartDay: Adapter.WeekStartDay): Date; addDays(date: Date, count: number): Date; /** Persian month arithmetic with day clamping for the 30/31-day asymmetry. */ addMonths(date: Date, count: number): Date; /** Esfand 30 in a leap year clamps to 29 in a non-leap year. */ addYears(date: Date, count: number): Date; getDayOfWeek(date: Date): Adapter.WeekStartDay; toDate(date: Date): Date; fromDate(date: Date): Date; /** * Formats using `Intl.DateTimeFormat` with the Persian calendar extension. * Appends `-u-ca-persian-nu-arabext` to the locale tag for correct rendering. */ format(date: Date, options: Intl.DateTimeFormatOptions, locale?: string): string; getHours(date: Date): number; getMinutes(date: Date): number; getSeconds(date: Date): number; setTime(date: Date, hour: number, minute: number, second?: number): Date; } //#endregion export { PersianAdapter as t };