import { ComponentFactoryResolver, ElementRef, Renderer2, ViewContainerRef } from "@angular/core"; import { NgControl } from "@angular/forms"; import { Config } from "../interfaces/config.interface"; import { ControlErrorContainerDirective } from "./control-error-container.directive"; import { FormSubmitDirective } from "./form-submit.directive"; export declare class ControlErrorsDirective { private config; private control; private form; private controlErrorContainer; private viewContainer; private resolver; private elementRef; private renderer; private submit$; private errorsContainer; constructor(config: Config, // Get module configuration control: NgControl, // Get this control form: FormSubmitDirective, // Get parent form controlErrorContainer: ControlErrorContainerDirective, // Get parent form group viewContainer: ViewContainerRef, resolver: ComponentFactoryResolver, elementRef: ElementRef, renderer: Renderer2); ngOnInit(): void; ngOnDestroy(): void; /** * Create a container component for the errors if it doesn't exist * Set the error text that should be showing * @param text * @returns void */ private setError; /** * Set validation state when something changes * @returns void */ private setValidation; }