import type { BlockNoteEditor } from "@blocknote/core";
/**
 * Subscribes to editor content changes. The callback is invoked whenever the
 * editor's document is modified, and the subscription is automatically cleaned
 * up when the component unmounts.
 *
 * @param callback - Function called when the editor content changes.
 * @param editor - The BlockNote editor instance. If omitted, uses the editor
 * from the nearest `BlockNoteContext`.
 */
export declare function useEditorChange(callback: Parameters<BlockNoteEditor<any, any, any>["onChange"]>[0], editor?: BlockNoteEditor<any, any, any>): void;
