import { Provider, Type } from '@angular/core'; import { AbstractControl, FormGroupDirective, NgForm } from '@angular/forms'; import * as i0 from "@angular/core"; /** Utility provider for `ErrorStateMatcher`. */ export declare const kbqErrorStateMatcherProvider: (errorStateMatcher: Type | ErrorStateMatcher) => Provider; /** * Error state matcher that matches when a control is invalid and form is submitted. * Requires use FormGroupDirective or NgForm. */ export declare class ShowOnFormSubmitErrorStateMatcher implements ErrorStateMatcher { isErrorState(control: AbstractControl | null, form: FormGroupDirective | NgForm | null): boolean; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } /** * Error state matcher with split behavior based on error's type: * - `required` errors are shown only after the form is submitted. * - All other errors are shown as soon as the control is invalid and touched. */ export declare class ShowRequiredOnSubmitErrorStateMatcher implements ErrorStateMatcher { isErrorState(control: AbstractControl | null, form: FormGroupDirective | NgForm | null): boolean; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } /** Error state matcher that matches when a control is invalid and dirty or form is submitted. */ export declare class ShowOnControlDirtyErrorStateMatcher implements ErrorStateMatcher { isErrorState(control: AbstractControl | null, form: FormGroupDirective | NgForm | null): boolean; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } /** * Provider that defines how form controls behave with regards to displaying error messages. * Error state matcher that matches when a control is invalid and touched or form is submitted. */ export declare class ErrorStateMatcher { isErrorState(control: AbstractControl | null, form: FormGroupDirective | NgForm | null): boolean; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }