import { InjectionToken, ChangeDetectorRef, AfterContentInit, SimpleChanges } from '@angular/core'; import { FormControlName, FormControlDirective } from '@angular/forms'; import { NzFormControlComponent } from 'ng-zorro-antd/form'; import * as i0 from "@angular/core"; /** 用于创建,错误提示键值映射对象服务提供商,的令牌 */ export declare const AUTO_ERROR_TIP_MAP: InjectionToken>; /** 用于创建,自定义错误对象的提示Key服务提供商,的令牌(目前未使用) */ export declare const AUTO_ERROR_TIP_KEY: InjectionToken; /** * 自动错误提示指令,主要用于自定义表单项 */ export declare class RhAutoErrorTipDirective implements AfterContentInit { private nzFormControl; private cdr; /** 字段显示名称,优化错误提示信息 */ rhFieldDisplayName: string; /** 内容查询,获取第一个FormControl */ ngControl: FormControlName | FormControlDirective; /** * 自定义错误对象的提示Key * 例子:{ errorType: { errorTipKey: '表单项发生了验证错误' } * */ private errorTipKey; /** * 错误提示键值映射对象,服务提供商提供了值,也可以修改 */ private errorTipMap; constructor(nzFormControl: NzFormControlComponent, cdr: ChangeDetectorRef, errorTipKey: string, errorTipMap: Record); ngOnChanges(changes: SimpleChanges): void; ngAfterContentInit(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; }