import { OnInit, ChangeDetectorRef } from '@angular/core'; import { PurchaseService } from '@schoolbelle/api/purchase'; import { FormControl, FormArray, FormGroup } from '@angular/forms'; import { Subscription } from 'rxjs'; export declare class EffectiveRangeComponent implements OnInit { private purchase; private cdRef; disableStartingDate: boolean; allowCustomDate: boolean; form: FormGroup; products: FormArray; startsAt: FormControl; expiresAt: FormControl; months: FormControl; span: FormControl; paymentType: FormControl; maxDate: Date; /** * 2019.10.04 -> 2020.02.29 * * 2020.01.01 -> 2020.02.29 * * 2020.04.01 -> 2021.02.28 */ endOfSchoolYear: Date; howLong: 'oneYear' | 'tillEndOfSchoolYear'; subscriptions: Subscription; shouldExtend: boolean; constructor(purchase: PurchaseService, cdRef: ChangeDetectorRef); ngOnInit(): void; ngOnDestroy(): void; private refreshMaxDate; private refreshEndOfSchoolYear; private getLastDayOfFebOfYear; /** * ceil */ getNumberOfMonths(): number; /** * * @param date1 early date * @param date2 late date */ private getNumberOfDiffInMonths; }