/** * This file contains code adapted from the React Spectrum project. * * Copyright (c) [year(s)], Adobe Inc. and other contributors. * All rights reserved. * * This source code is licensed under the Apache License, Version 2.0 * found in the LICENSE.txt file at the root directory of this source tree. */ import { CalendarDate } from '../CalendarDate'; import { AnyCalendarDate, Calendar } from '../types'; /** * The Persian calendar is the main calendar used in Iran and Afghanistan. It has 12 months * in each year, the first 6 of which have 31 days, and the next 5 have 30 days. The 12th month * has either 29 or 30 days depending on whether it is a leap year. The Persian year starts * around the March equinox. */ export declare class PersianCalendar implements Calendar { identifier: string; fromJulianDay(jd: number): CalendarDate; toJulianDay(date: AnyCalendarDate): number; getMonthsInYear(): number; getDaysInMonth(date: AnyCalendarDate): number; getEras(): string[]; getYearsInEra(): number; }