import type { JSONContent } from "@tiptap/core"; import type { SelectModeFormatCommand } from "../_vendor/schemas/generated/selectMode"; export type InlineTiptapEditor = { focus: () => void; focusAndSelectAll: () => void; destroy: () => void; getHTML: () => string; getJSON: () => JSONContent; runFormatCommand: (command: SelectModeFormatCommand) => void; }; export declare function createInlineTiptapEditor({ element, content, onCommit, onEscape, onBlur, onActiveMarksChange, }: { element: HTMLElement; content: string; onCommit: () => void; onEscape: () => void; onBlur: () => void; onActiveMarksChange: (activeMarks: { bold: boolean; italic: boolean; underline: boolean; strike: boolean; }) => void; }): InlineTiptapEditor;