import { type Content, type Editor } from '@tiptap/core'; import type { Transaction } from '@tiptap/pm/state'; export type ExternalDocumentContentResult = 'applied' | 'unchanged' | 'unsupported'; /** * Returns whether an editor transaction represents a user-authored document * change that the controlled host must persist. */ export declare function shouldPublishDocumentUpdate(transaction: Transaction, appendedTransactions?: readonly Transaction[]): boolean; /** * Applies controlled host content as the smallest ProseMirror transaction. * This keeps selections, editor instances, and local history stable while an * agent or another realtime producer extends the document. */ export declare function applyExternalDocumentContent(editor: Editor, content: Content): ExternalDocumentContentResult;