import { ValidatorFn } from '@angular/forms'; import { FieldConfig, Validator } from '../dynamic-form/field.interface'; import * as i0 from "@angular/core"; export declare class ValidatorService { /** * Transform array of validators from fieldConfig to be consumed by the formControl * @param config Field config to retrieve validator Functions the formControl should validate the data against * @return An array of validators. */ static buildValidatorFromFieldConfig(config?: FieldConfig): ValidatorFn | null; /** * Build array of validators based on the passed in validation * @param validators */ static buildValidators(validators: Validator[]): ValidatorFn | null; /** * Create Validator for formControl based off passed in Error Map. * @param submitValue * @param errorMessage * @return ResponseError validator function with message from error map * TODO This will not work in some instances * TODO If two fields have errored and can be set to the same value you will see the message in a situation in which you wouldn't expect */ static checkForErrorMessages(submitValue: string, errorMessage?: string): ValidatorFn; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }