import { ChangeDetectorRef, EventEmitter, OnDestroy } from '@angular/core'; import { NgControl } from '@angular/forms'; import { AbstractTuiEditor } from '@taiga-ui/addon-editor/abstract'; import { TuiToolbarComponent } from '@taiga-ui/addon-editor/components/toolbar'; import { TuiEditorTool } from '@taiga-ui/addon-editor/enums'; import { TuiEditorAttachedFile } from '@taiga-ui/addon-editor/interfaces'; import { TuiEditorOptions } from '@taiga-ui/addon-editor/tokens'; import { AbstractTuiControl, AbstractTuiValueTransformer, TuiBooleanHandler, TuiFocusableElementAccessor, TuiStringHandler } from '@taiga-ui/cdk'; 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; private readonly options; private readonly el?; exampleText: string; tools: readonly TuiEditorTool[]; readonly fileAttached: EventEmitter[]>; readonly toolbar?: TuiToolbarComponent; focused: boolean; constructor(control: NgControl | null, cdr: ChangeDetectorRef, editorLoaded$: Observable, editorService: AbstractTuiEditor, contentProcessor: TuiStringHandler, doc: Document, transformer: AbstractTuiValueTransformer | null, options: TuiEditorOptions); get nativeFocusableElement(): HTMLDivElement | null; get dropdownSelectionHandler(): TuiBooleanHandler; get editor(): AbstractTuiEditor | null; get placeholderRaised(): boolean; get hasExampleText(): boolean; writeValue(value: string | null): void; onActiveZone(focused: boolean): void; onModelChange(value: string): void; addAnchor(anchor: string): void; removeAnchor(): void; addLink(link: string): void; removeLink(): void; focus(event: MouseEvent): void; ngOnDestroy(): void; protected getFallbackValue(): string; private readonly isSelectionLink; /** * @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; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }