import { AbstractControl, ValidationErrors } from "@angular/forms";
import { RegExpValidatorDirective } from "./template-driven-form-validators";
import * as i0 from "@angular/core";
/**
* @publicApi
* @description
* A Directive that checks if a value in the given FromControl / AbstractControl is
* in a proper address format (Street number Street Name, City, State ZIP code)
* Example: 3344 W Alameda Avenue, Lakewood, CO 80222
*
* Has an optional input in which you specify custom name and a custom
* error content / message.
*
* @usageNotes
*
*/
export declare class AddressValidatorDirective extends RegExpValidatorDirective {
value: any;
validate(control: AbstractControl): ValidationErrors | null;
static ɵfac: i0.ɵɵFactoryDeclaration;
static ɵdir: i0.ɵɵDirectiveDeclaration;
}
/**
* @publicApi
* @description
* A Directive that hecks if a value in the given FromControl / AbstractControl
* consists of only alphabetic characters.
*
* Has an optional input in which you specify custom name and a custom
* error content / message.
*
* @usageNotes
*
*/
export declare class AlphabetOnlyValidatorDirective extends RegExpValidatorDirective {
value: any;
validate(control: AbstractControl): ValidationErrors | null;
static ɵfac: i0.ɵɵFactoryDeclaration;
static ɵdir: i0.ɵɵDirectiveDeclaration;
}
/**
* @publicApi
* @description
* A Directive that checks if a value in the given FromControl / AbstractControl
* is in one of the following formats: dd-MM-YYYY, dd.MM.YYYY or dd/MM/YYYY.
*
* Has an optional input in which you specify custom name and a custom
* error content / message.
*
* @usageNotes
*
*/
export declare class DateDD_MM_YYYYValidatorDirective extends RegExpValidatorDirective {
value: any;
validate(control: AbstractControl): ValidationErrors | null;
static ɵfac: i0.ɵɵFactoryDeclaration;
static ɵdir: i0.ɵɵDirectiveDeclaration;
}
/**
* @publicApi
* @description
* A Directive that checks if a value in the given FromControl / AbstractControl
* is a following format: YYYY-MM-dd.
*
* Has an optional input in which you specify custom name and a custom
* error content / message.
*
* @usageNotes
*
*/
export declare class DateYYYY_MM_DDValidatorDirective extends RegExpValidatorDirective {
value: any;
validate(control: AbstractControl): ValidationErrors | null;
static ɵfac: i0.ɵɵFactoryDeclaration;
static ɵdir: i0.ɵɵDirectiveDeclaration;
}
/**
* @publicApi
* @description
* A Directive that checks if a value in the given FromControl / AbstractControl
* is a following format: local-part@domain.com.
*
* Has an optional input in which you specify custom name and a custom
* error content / message.
*
* @usageNotes
*
*/
export declare class EmailValidatorDirective extends RegExpValidatorDirective {
value: any;
validate(control: AbstractControl): ValidationErrors | null;
static ɵfac: i0.ɵɵFactoryDeclaration;
static ɵdir: i0.ɵɵDirectiveDeclaration;
}
/**
* @publicApi
* @description
* A Directive that checks if a value in the given FromControl / AbstractControl
* is in one of the following formats: x.x.x.x or y:y:y:y:y:y:y:y.
*
* Has an optional input in which you specify custom name and a custom
* error content / message.
*
* @usageNotes
*
*/
export declare class IPAddressValidatorDirective extends RegExpValidatorDirective {
value: any;
validate(control: AbstractControl): ValidationErrors | null;
static ɵfac: i0.ɵɵFactoryDeclaration;
static ɵdir: i0.ɵɵDirectiveDeclaration;
}
/**
* @publicApi
* @description
* A Directive that checks if a value in the given FromControl / AbstractControl
* is in a following format: x.x.x.x.
*
* Has an optional input in which you specify custom name and a custom
* error content / message.
*
* @usageNotes
*
*/
export declare class IPv4ValidatorDirective extends RegExpValidatorDirective {
value: any;
validate(control: AbstractControl): ValidationErrors | null;
static ɵfac: i0.ɵɵFactoryDeclaration;
static ɵdir: i0.ɵɵDirectiveDeclaration;
}
/**
* @publicApi
* @description
* A Directive that checks if a value in the given FromControl / AbstractControl
* is in a following format: y:y:y:y:y:y:y:y.
*
* Has an optional input in which you specify custom name and a custom
* error content / message.
*
* @usageNotes
*
*/
export declare class IPv6ValidatorDirective extends RegExpValidatorDirective {
value: any;
validate(control: AbstractControl): ValidationErrors | null;
static ɵfac: i0.ɵɵFactoryDeclaration;
static ɵdir: i0.ɵɵDirectiveDeclaration;
}
/**
* @publicApi
* @description
* A Directive that checks if a value in the given FromControl / AbstractControl
* consists of only numeric characters.
*
* Has an optional input in which you specify custom name and a custom
* error content / message.
*
* @usageNotes
*
*/
export declare class NumericsOnlyValidatorDirective extends RegExpValidatorDirective {
value: any;
validate(control: AbstractControl): ValidationErrors | null;
static ɵfac: i0.ɵɵFactoryDeclaration;
static ɵdir: i0.ɵɵDirectiveDeclaration;
}
/**
* @publicApi
* @description
* A Directive that checks if a value in the given FromControl / AbstractControl
* has any special characters.
*
* Has an optional input in which you specify custom name and a custom
* error content / message.
*
* @usageNotes
*
*/
export declare class NoSpecialsValidatorDirective extends RegExpValidatorDirective {
value: any;
validate(control: AbstractControl): ValidationErrors | null;
static ɵfac: i0.ɵɵFactoryDeclaration;
static ɵdir: i0.ɵɵDirectiveDeclaration;
}
/**
* @publicApi
* @description
* A Directive that checks if a value in the given FromControl / AbstractControl
* is in a proper passport format.
*
* Has an optional input in which you specify custom name and a custom
* error content / message.
*
* @usageNotes
*
*/
export declare class PassportValidatorDirective extends RegExpValidatorDirective {
value: any;
validate(control: AbstractControl): ValidationErrors | null;
static ɵfac: i0.ɵɵFactoryDeclaration;
static ɵdir: i0.ɵɵDirectiveDeclaration;
}
/**
* @publicApi
* @description
* A Directive that checks if a value in the given FromControl / AbstractControl
* is in a strong password format (Has at least 1 lowercase letter, 1 uppercase letter,
* 1 number, 1 special character and has length of at least 8 characters).
*
* Has an optional input in which you specify custom name and a custom
* error content / message.
*
* @usageNotes
*
*/
export declare class PasswordValidatorDirective extends RegExpValidatorDirective {
value: any;
validate(control: AbstractControl): ValidationErrors | null;
static ɵfac: i0.ɵɵFactoryDeclaration;
static ɵdir: i0.ɵɵDirectiveDeclaration;
}
/**
* @publicApi
* @description
* A Directive that checks if a value in the given FromControl / AbstractControl
* is in a following format: (000) 000 0000.
*
* Has an optional input in which you specify custom name and a custom
* error content / message.
*
* @usageNotes
*
*/
export declare class PhoneNumberValidatorDirective extends RegExpValidatorDirective {
value: any;
validate(control: AbstractControl): ValidationErrors | null;
static ɵfac: i0.ɵɵFactoryDeclaration;
static ɵdir: i0.ɵɵDirectiveDeclaration;
}
/**
* @publicApi
* @description
* A Directive that checks if a value in the given FromControl / AbstractControl
* consists of a single space character.
*
* Has an optional input in which you specify custom name and a custom
* error content / message.
*
* @usageNotes
*
*/
export declare class SpaceValidatorDirective extends RegExpValidatorDirective {
value: any;
validate(control: AbstractControl): ValidationErrors | null;
static ɵfac: i0.ɵɵFactoryDeclaration;
static ɵdir: i0.ɵɵDirectiveDeclaration;
}
/**
* @publicApi
* @description
* A Directive that checks if a value in the given FromControl / AbstractControl
* starts or ends with a space character.
*
* Has an optional input in which you specify custom name and a custom
* error content / message.
*
* @usageNotes
*
*/
export declare class SpaceRestrictionValidatorDirective extends RegExpValidatorDirective {
value: any;
validate(control: AbstractControl): ValidationErrors | null;
static ɵfac: i0.ɵɵFactoryDeclaration;
static ɵdir: i0.ɵɵDirectiveDeclaration;
}
/**
* @publicApi
* @description
* A Directive that checks if a value in the given FromControl / AbstractControl
* is in one of the following formats: AAA-GGG-SSSS or AAAGGGSSSS.
*
* Has an optional input in which you specify custom name and a custom
* error content / message.
*
* @usageNotes
*
*/
export declare class SSNValidatorDirective extends RegExpValidatorDirective {
value: any;
validate(control: AbstractControl): ValidationErrors | null;
static ɵfac: i0.ɵɵFactoryDeclaration;
static ɵdir: i0.ɵɵDirectiveDeclaration;
}
/**
* @publicApi
* @description
* A Directive that checks if a value in the given FromControl / AbstractControl
* is in a Time Format HH:MM 12-hour with optional leading 0.
*
* Has an optional input in which you specify custom name and a custom
* error content / message.
*
* @usageNotes
*
*/
export declare class TimeHH_MM_12ValidatorDirective extends RegExpValidatorDirective {
value: any;
validate(control: AbstractControl): ValidationErrors | null;
static ɵfac: i0.ɵɵFactoryDeclaration;
static ɵdir: i0.ɵɵDirectiveDeclaration;
}
/**
* @publicApi
* @description
* A Directive that checks if a value in the given FromControl / AbstractControl
* is in a Time Format HH:MM 24-hour with optional leading 0.
*
* Has an optional input in which you specify custom name and a custom
* error content / message.
*
* @usageNotes
*
*/
export declare class TimeHH_MM_24ValidatorDirective extends RegExpValidatorDirective {
value: any;
validate(control: AbstractControl): ValidationErrors | null;
static ɵfac: i0.ɵɵFactoryDeclaration;
static ɵdir: i0.ɵɵDirectiveDeclaration;
}
/**
* @publicApi
* @description
* A Directive that checks if a value in the given FromControl / AbstractControl
* is in a Time Format HH:MM:SS 24-hour.
*
* Has an optional input in which you specify custom name and a custom
* error content / message.
*
* @usageNotes
*
*/
export declare class TimeHH_MM_SS_24ValidatorDirective extends RegExpValidatorDirective {
value: any;
validate(control: AbstractControl): ValidationErrors | null;
static ɵfac: i0.ɵɵFactoryDeclaration;
static ɵdir: i0.ɵɵDirectiveDeclaration;
}
/**
* @publicApi
* @description
* A Directive that checks if a value in the given FromControl / AbstractControl
* is in a correct url format.
*
* Has an optional input in which you specify custom name and a custom
* error content / message.
*
* @usageNotes
*
*/
export declare class UrlValidatorDirective extends RegExpValidatorDirective {
value: any;
validate(control: AbstractControl): ValidationErrors | null;
static ɵfac: i0.ɵɵFactoryDeclaration;
static ɵdir: i0.ɵɵDirectiveDeclaration;
}
/**
* @publicApi
* @description
* A Directive that checks if a value in the given FromControl / AbstractControl
* is in one of the following formats: 00000 or 00000-0000..
*
* Has an optional input in which you specify custom name and a custom
* error content / message.
*
* @usageNotes
*
*/
export declare class ZipCodeValidatorDirective extends RegExpValidatorDirective {
value: any;
validate(control: AbstractControl): ValidationErrors | null;
static ɵfac: i0.ɵɵFactoryDeclaration;
static ɵdir: i0.ɵɵDirectiveDeclaration;
}