import { TemplateRef, Type } from '@angular/core'; import { NgControl } from '@angular/forms'; export declare namespace Validation { type Config = Partial<{ blueprints: Blueprints; errorTemplate: Type | TemplateRef; invalidClasses: string; mapErrorsFn: MapErrorsFn; skipValidation: boolean; targetSelector: string; validateOnSubmit: boolean; }>; interface Blueprints { [key: string]: string; } interface ParamMap { [key: string]: string | number | boolean | string[]; } interface Error { key: string; params?: ParamMap; message?: string; } type MapErrorsFn = (errors: Error[], formErrors: Error[], control?: NgControl) => Error[]; type StreamName = 'status' | 'submit' | 'value'; }