import { ValidatorFn } from "@angular/forms"; import { DateService } from "@hmcts/opal-frontend-common/services/date-service"; /** * Validates whether a date, constructed from provided form controls for day, month and year * is at least 18 years in the past. * * @param dayControl - Name of the control for the day portion of the date * @param monthControl - Name of the control for the month portion of the date * @param yearControl - Name of the control for the year portion of the date * @param dateService - An instance of DateService * @returns Validator function that returns null if the date is valid and the age is 18 years older, * or an error object within { underEighteen: true } if under 18. */ export declare const overEighteenValidator: (dayControl: string, monthControl: string, yearControl: string, dateService: DateService) => ValidatorFn;