import { Diff } from 'fast-diff'; import { TextUnderCursor } from '../../helpers/textUnderCursor'; import { BaseService } from '../base/service'; import { ParagraphTextUnderCursorService } from '../text/paragraphTextUnderCursorService'; import { TextUnderCursorRange } from '../text/textUnderCursorService'; import { ElementSelectionService } from './elementSelectionService'; export declare function createElementParagraphTextUnderCursorService(selectionService: ElementSelectionService): ParagraphTextUnderCursorService; export declare class ElementParagraphTextUnderCursorService extends BaseService implements ParagraphTextUnderCursorService { constructor(selectionService: ElementSelectionService); private readonly selectionService; private get state(); get container(): Element | null; get isActive(): boolean; get textUnderCursor(): { text: string; anchorOffset: number; focusOffset: number; }; getBoundingClientRect(textRange?: TextUnderCursorRange): ClientRect | undefined; setTextUnderCursor(textUnderCursor: Readonly): void; } export declare function tryApplyDiffs(container: Node, diffs: readonly Diff[]): boolean;