import { AbstractTuiEditor, type TuiEditableIframe, type TuiEditorAttachedFile, type TuiSelectionSnapshot, type TuiSetValueOption, type TuiYoutubeOptions } from '@taiga-ui/editor/common'; import type * as TuiEditorTypes from '@taiga-ui/editor/common/types'; import { type Editor, type Range } from '@tiptap/core'; import { type MarkType } from '@tiptap/pm/model'; import { EditorState } from '@tiptap/pm/state'; import { type Observable } from 'rxjs'; import * as i0 from "@angular/core"; type Level = 1 | 2 | 3 | 4 | 5 | 6; type Attrs = Record; export declare class TuiTiptapEditorService extends AbstractTuiEditor { private readonly editorRef; private readonly options; private firstInitContent; protected selectionSnapshot: TuiSelectionSnapshot | null; protected editor?: Editor; constructor(); get isFocused(): boolean; get html(): string; get editable(): boolean; set editable(editable: boolean); get state(): EditorState | null; getOriginTiptapEditor(): Editor | null; undoDisabled(): boolean; redoDisabled(): boolean; getFontColor(): string; getFontSize(): number; setFontSize(size: number): void; getBackgroundColor(): string; getCellColor(): string; getGroupColor(): string; onAlign(align: string): void; setImage(src: string): void; undo(): void; redo(): void; setHorizontalRule(): void; removeFormat(): void; setFontColor(color: string): void; setBackgroundColor(color: string): void; toggleUnderline(): void; toggleStrike(): void; toggleOrderedList(): void; toggleUnorderedList(): void; togglePre(): void; toggleTaskList(): void; sinkListItem(): void; liftListItem(): void; isActive(attributes: Attrs): boolean; isActive(name: string, attributes?: Record): boolean; isActive$(attributes: Attrs): Observable; isActive$(name: string, attributes?: Record): Observable; toggleBold(): void; toggleCode(): void; toggleItalic(): void; toggleBlockquote(): void; toggleSubscript(): void; toggleSuperscript(): void; toggleCodeBlock(): void; insertTable(cols: number, rows: number): void; addColumnAfter(): void; addColumnBefore(): void; addRowAfter(): void; addRowBefore(): void; deleteColumn(): void; deleteRow(): void; mergeCells(): void; splitCell(): void; canMergeCells(): boolean; canSplitCells(): boolean; setHeading(level: Level): void; setParagraph(options?: { fontSize: string; }): void; setHardBreak(): void; setTextSelection(value: Range | number): void; toggleLink(href: string): void; setLink(href: string): void; unsetLink(): void; focus(): void; setValue(value: string, options?: TuiSetValueOption): void; clearHistory(): void; destroy(): void; setCellColor(color: string): void; selectClosest(): void; enter(): void; setDetails(): void; unsetDetails(): void; /** * @deprecated use {@link unsetDetails} */ removeDetails(): void; setGroup(): void; removeGroup(): void; setGroupHilite(color: string): void; setAnchor(anchor: string): void; removeAnchor(): void; setFileLink(preview: TuiEditorAttachedFile): void; setYoutubeVideo(options: TuiYoutubeOptions): void; setIframe(options: TuiEditableIframe): void; removeEmptyTextStyle(): void; toggleMark(typeOrName: MarkType | string, attributes?: Record, options?: { extendEmptyMarkRange?: boolean; }): void; /** * @deprecated use {@link html} */ getHTML(): string; takeSelectionSnapshot(): void; getSelectionSnapshot(): TuiSelectionSnapshot | null; private triggerTransaction; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } export type { TuiEditorTypes };