import { AbstractControl, FormGroup, ValidationErrors } from '@angular/forms'; /** * Service, that contains the static validation functions. * * @export * @class ValidationService */ export declare class ValidationService { /** * Validator for the creadit cards. Visa, MasterCard, American Express, Diners Club, Discover, JCB. * * @static * @param {*} control * @returns * @memberof ValidationService */ static creditCardValidator(control: any): { invalidCreditCard: boolean; }; /** * E-mail validator. RFC 2822 compliant regex. * * @static * @param {*} control * @returns * @memberof ValidationService */ static emailValidator(control: any): { invalidEmailAddress: boolean; }; /** * Password validator. Asserts password is between 6 and 100 characters and asserts a string has at least one number * * @static * @param {*} control * @returns * @memberof ValidationService */ static passwordValidator(control: any): { invalidPassword: boolean; }; /** * Validator for the translatable forms. * * @static * @param {FormGroup} group * @returns {(ValidationErrors | null)} * @memberof ValidationService */ static translationValidator(group: FormGroup): ValidationErrors | null; /** * This function validates the password mismatching. You mast have the password and the passwordConfirmation controls! * * @static * @param {AbstractControl} AC * @returns * @memberof ValidationService */ static matchPassword(AC: AbstractControl): any; static urlValidator(control: AbstractControl): ValidationErrors | null; private readonly messages; /** * Gets the message of the validator error message. * * @param {string} validatorName * @param {*} [validatorValue] * @returns * @memberof ValidationService */ getValidatorErrorMessage(validatorName: string): any; }