import type { Node as PMNode } from 'prosemirror-model'; import type { Diff } from './types'; /** * Diffs two ProseMirror documents, tree-first: block-level children are * aligned and matched, then diffed recursively (containers recurse into * children, inline-content nodes get a word-level diff of their flattened * content, leaf/atom nodes are compared by attrs). Both docs must come from * the same Schema instance. */ export declare function diffDoc(oldDoc: PMNode, newDoc: PMNode): Diff[];