import { Transaction } from '@tiptap/pm/state'; import { NodeWithPos } from '@tiptap/react'; /** * Update a single attribute on multiple nodes. * * @param tr - The transaction to mutate * @param targets - Array of { node, pos } * @param attrName - Attribute key to update * @param next - New value OR updater function receiving previous value * Pass `undefined` to remove the attribute. * @returns true if at least one node was updated, false otherwise */ declare function updateNodesAttr(tr: Transaction, targets: readonly NodeWithPos[], attrName: A, next: V | ((prev: V | undefined) => V | undefined)): boolean; export { updateNodesAttr };