import { AbstractControl, ValidationErrors, ValidatorFn } from "@angular/forms"; /** * Function that has `ValidatorFn` shape, but performs no operation. */ export declare function nullValidator(control: AbstractControl): ValidationErrors | null; export declare class Validators { /** * @description * Validator that requires the control's value to be less than or equal to the provided number. * * @usageNotes * * ### Validate against a range 0 - 15 * * ```typescript * const control = new FormControl(16, Validators.max([0,15])); * * console.log(control.errors); // {range: {min: 0, max: 15, actual: 16}} * ``` * * @returns A validator function that returns an error map with the * `range` property if the validation check fails, otherwise `null`. * * @see `updateValueAndValidity()` * */ static range(min: number, max: number): ValidatorFn; /** * @description * Validator that requires the control's value to be less than or equal to the provided number. * * @usageNotes * * ### Validate against a range 0 - 15 * * ```typescript * const control = new FormControl(16, Validators.max([0,15])); * * console.log(control.errors); // {range: {min: 0, max: 15, actual: 16}} * ``` * * @returns A validator function that returns an error map with the * `range` property if the validation check fails, otherwise `null`. * * @see `updateValueAndValidity()` * */ static match(value: string): ValidatorFn; } /** * Validator that requires the control's value to be between provided numbers. * See `Validators.range` for additional information. */ export declare function rangeValidator(range: Array): ValidatorFn; export declare function matchValidator(input: string): ValidatorFn;