import { FormControl } from '@angular/forms';
import { ElementRef } from '@angular/core';
import * as i0 from "@angular/core";
export declare class NgxErrorMessageDirective {
    private errors;
    private _elementRef;
    formControl: FormControl | undefined;
    customMessage: any;
    private destroy$;
    constructor(errors: any, _elementRef: ElementRef);
    ngOnInit(): void;
    ngOnDestroy(): void;
    setTextError(): string;
    static ɵfac: i0.ɵɵFactoryDeclaration<NgxErrorMessageDirective, never>;
    static ɵdir: i0.ɵɵDirectiveDeclaration<NgxErrorMessageDirective, "[errorMessage]", never, { "formControl": "errorMessage"; "customMessage": "customMessage"; }, {}, never>;
}
