import { ChangeDetectorRef, EventEmitter, NgZone, OnDestroy } from '@angular/core'; import { NgControl } from '@angular/forms'; import { AbstractTuiControl, AbstractTuiValueTransformer, TuiBooleanHandler, TuiFocusableElementAccessor, TuiStringHandler } from '@taiga-ui/cdk'; import { AbstractTuiEditor } from '@tinkoff/tui-editor/abstract'; import { TuiToolbarComponent } from '@tinkoff/tui-editor/components/toolbar'; import { TuiEditorTool } from '@tinkoff/tui-editor/enums'; import { TuiEditorAttachedFile } from '@tinkoff/tui-editor/interfaces'; import { TuiEditorOptions } from '@tinkoff/tui-editor/tokens'; import { TuiSelectionState } from '@tinkoff/tui-editor/utils'; import { Editor } from '@tiptap/core'; import { Observable } from 'rxjs'; import * as i0 from "@angular/core"; export declare class TuiEditorComponent extends AbstractTuiControl implements OnDestroy, TuiFocusableElementAccessor { readonly editorLoaded$: Observable; readonly editorService: AbstractTuiEditor; private readonly contentProcessor; private readonly doc; readonly options: TuiEditorOptions; private readonly zone; private readonly el?; private readonly tuiDropdown?; exampleText: string; tools: readonly TuiEditorTool[]; floatingToolbar: boolean; readonly fileAttached: EventEmitter[]>; readonly toolbar?: TuiToolbarComponent; readonly focusIn: EventEmitter; readonly focusOut: EventEmitter; hasMentionPlugin: boolean; focused: boolean; constructor(control: NgControl | null, cdr: ChangeDetectorRef, editorLoaded$: Observable, editorService: AbstractTuiEditor, contentProcessor: TuiStringHandler, doc: Document, transformer: AbstractTuiValueTransformer | null, options: TuiEditorOptions, zone: NgZone); get nativeFocusableElement(): HTMLDivElement | null; get dropdownSelectionHandler(): TuiBooleanHandler; get editor(): AbstractTuiEditor | null; get placeholderRaised(): boolean; get hasExampleText(): boolean; get isLinkSelected(): boolean; get mentionSuggestions(): string; get isMentionMode(): boolean; writeValue(value: string | null): void; onActiveZone(focused: boolean): void; onModelChange(value: string): void; addAnchor(anchor: string): void; removeAnchor(): void; closeDropdown(): void; addLink(link: string): void; removeLink(): void; get selectionState(): TuiSelectionState; focus(event: MouseEvent): void; ngOnDestroy(): void; protected getFallbackValue(): string; 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 get focusNode(); private get hasValue(); private get currentFocusedNodeIsImageAnchor(); private patchContentEditableElement; private listenResizeEvents; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }