import { ChangeDetectorRef, EventEmitter, type OnDestroy, TemplateRef } from '@angular/core'; import { type TuiBooleanHandler, TuiControl } from '@taiga-ui/cdk'; import { TuiDropdownOpen } from '@taiga-ui/core'; import { type AbstractTuiEditor, type TuiEditorAttachedFile } from '@taiga-ui/editor/common'; import { TuiTiptapEditorService } from '@taiga-ui/editor/directives/tiptap-editor'; import { type TuiSelectionState } from '@taiga-ui/editor/utils'; import * as i0 from "@angular/core"; import * as i1 from "@taiga-ui/core"; export declare class TuiEditor extends TuiControl implements OnDestroy { private readonly el?; private readonly ownDropdown?; private readonly contentProcessor; private readonly doc; private readonly zone; private readonly destroy$; protected dropdownContent?: TemplateRef; protected readonly tuiDropdown: TuiDropdownOpen | null; protected readonly options: import("@taiga-ui/editor/common").TuiEditorOptions; protected readonly editorLoaded: import("@angular/core").WritableSignal; protected readonly editorLoaded$: import("rxjs").Observable; protected readonly cd: ChangeDetectorRef; protected readonly $: import("rxjs").Subscription; /** * @deprecated use placeholder */ exampleText: string; placeholder: string; toolbar?: TemplateRef | null; floatingToolbar: boolean; tools: Set | readonly import("@taiga-ui/editor/common").TuiEditorToolType[]; readonly fileAttached: EventEmitter[]>; readonly focusIn: EventEmitter; readonly focusOut: EventEmitter; readonly loaded: EventEmitter; hasMentionPlugin: boolean; readonly hovered: import("@angular/core").Signal; readonly focused: import("@angular/core").WritableSignal; readonly m: import("@angular/core").Signal; readonly s: import("@angular/core").Signal; readonly rootEl: HTMLElement; readonly editorService: TuiTiptapEditorService; set readOnlyMode(value: boolean); get editor(): AbstractTuiEditor | null; get nativeFocusableElement(): HTMLDivElement | null; get selectionState(): TuiSelectionState; get mentionSuggestions(): string; get isMentionMode(): boolean; get isLinkSelected(): boolean; writeValue(value: string | null): void; ngOnDestroy(): void; protected get dropdownSelectionHandler(): TuiBooleanHandler; protected get hasPlaceholder(): boolean; protected onModelChange(value: string | null): void; protected onActiveZone(focused: boolean): void; protected addAnchor(anchor: string): void; protected removeAnchor(): void; protected closeDropdown(): void; protected addLink(link: string): void; protected removeLink(): void; protected focus(event: KeyboardEvent | MouseEvent): void; private get focusNode(); private readonly openDropdownWhen; /** * @description: * The commonAncestorContainer not always relevant node element in Range, * so the focusNode is used for the correct behaviour from the selection, * which is the actual element at the moment */ private currentFocusedNodeIsTextAnchor; private patchContentEditableElement; private listenResizeEvents; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }