import { AbstractControl, ValidationErrors, ValidatorFn } from "@angular/forms"; import { DateComparison } from "../date-comparison.enum"; import * as i0 from "@angular/core"; /** * Validation service for bound date inputs, i.e. start dates and end dates */ /** @dynamic */ export declare class DateValidationService { constructor(); /** * Error messages related to the different DateValidator errors. * * The constant should be named with the error key prefix. */ static DateFormatErrorMessage: string; static FutureDateErrorMessage: string; /** * Validator to determine if a start date is before or after and end date based on the * date comparison method passed in * @param targetFormControlName - the opposite date input than the one the user changed * @param errorName - the error to display if they are out of order * @param dateComparisonMethod - before, after, beforeOrEqual, AfterOrEqual */ static DateRangeValidator(targetFormControlName: string, errorName: string, dateComparisonMethod: DateComparison): ValidatorFn; /** * Validate that a date is in the correct format. The form control value should be a plain JS Date object * due to the date picker. * @param control - the date input to check formatting on */ static DateValidator(control: AbstractControl): ValidationErrors | null; /** * Remove a single error from a give form control * @param control - the form control with the error * @param error - the error to remove */ private static removeSingleError; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }