import { ChangeDetectorRef, ElementRef, EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core'; import { AbstractControl, ControlValueAccessor, ValidationErrors, Validator } from '@angular/forms'; import { IDomEditor, IEditorConfig, SlateDescendant } from '@wangeditor-next/editor'; import { Mode } from './type'; import * as i0 from "@angular/core"; export declare class NzxWangEditorDirective implements OnInit, ControlValueAccessor, OnDestroy, OnChanges, Validator { private editorRef; private cd; mode: Mode; defaultContent: SlateDescendant[]; defaultHtml: string; defaultConfig: Partial; height: string; /**富文本编辑器必填,必须有text内容 */ textRequired: boolean; /**富文本编辑器必填,必须有内容仅当


不通过校验注意与textRequired互斥*/ tagRequired: boolean; onCreated: EventEmitter; onDestroyed: EventEmitter; onMaxLength: EventEmitter; onFocus: EventEmitter; onBlur: EventEmitter; customAlert: EventEmitter; customPaste: EventEmitter; onChange: EventEmitter; display: string; editor: IDomEditor; currentValue: string; private propagateChange; constructor(editorRef: ElementRef, cd: ChangeDetectorRef); ngOnInit(): void; ngOnChanges(changes: SimpleChanges): void; validate(control: AbstractControl): ValidationErrors | null; private init; writeValue(html: any): void; registerOnChange(fn: any): void; registerOnTouched(fn: any): void; setDisabledState?(isDisabled: boolean): void; ngOnDestroy(): void; private genErrorInfo; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; }