import * as i0 from "@angular/core"; /** * Methods of this Service doing validation stuff on a Jalali date. You can use this Service using DI in all around of your app for * validating Jalali dates without needing to convert them to the Georgian Date. */ export declare class JalaliDateValidatorService { private static _minAcceptableYear; private static _maxAcceptableYear; constructor(); /** * Returns number of days in a given month counting from 1. * * @param jYear full jalali year like 1397 * @param jMonth number of month from 0 for Farvardin to 11 for Esfand. */ jMonthLength(jYear: number, jMonth: number): number; /** * Calculates the number of the leap years in jalali Calendar. * * @param targetJYear should be full year like: 1397 and should be between -61 to 3177. * * [Implementation in source code]{@link https://github.com/sijad/ts-jalaali/blob/296a7c2fa1816a5bbb0b11bbe3eb03ebc17059f6/src/jalaali.ts#L71} */ numOfJLeapYears(targetJYear: number): number; /** * If JYear is a leap year in jalali Calendar, return true. We using the fact that if a year is leap, number of leap years until that year * and the year after it is not equal. * * @param jYear full jalali year like: 1397 */ isJYearLeap(jYear: number): boolean; /** * Checks if jalali year is in acceptable range or not. * * [Implementation in source code]{@link https://github.com/sijad/ts-jalaali/blob/296a7c2fa1816a5bbb0b11bbe3eb03ebc17059f6/src/jalaali.ts#L27} * * @param jYear full jalali year like 1397 */ isValidJYear(jYear: number): boolean; /** * Checks if jalali month is in valid range or not. In default, jMonth should start from zero. * If you want to start month number from one instead of zero, you should make startFromZero parameter to false. */ isValidJMonth(jMonth: number, startFromZero?: boolean): boolean; /** * Checks if day number is in valid range according to the given year and month. * * @param jYear full jalali year like 1397 * @param jMonth month number starting from zero * @param jDay day number starting from one */ isValidJDay(jYear: number, jMonth: number, jDay: number): boolean; /** * If Jalali date is not a valid Jalali date, return false. otherwise returns true. * * @param jYear full year number like: 1397 * @param jMonth starts from zero * @param jDay starts from one */ isValidJDate(jYear: number, jMonth: number, jDay: number): boolean; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }