import type { Node as ProseMirrorNode } from "@tiptap/pm/model"; import type { EditorState, Transaction } from "@tiptap/pm/state"; export declare function findButtonNodeById(doc: ProseMirrorNode, id: string): { pos: number; node: ProseMirrorNode; } | null; export declare function findButtonNodeAtPosition(doc: ProseMirrorNode, position: number): { pos: number; node: ProseMirrorNode; } | null; export declare function extractButtonTextContent(node: ProseMirrorNode): string; export declare function syncButtonContentToLabelAttr(state: EditorState): Transaction | null; export declare function updateButtonLabelAndContent(tr: Transaction, buttonPos: number, newLabel: string): boolean;