import { Node } from '@tiptap/pm/model'; import { Selection } from '@tiptap/pm/state'; import { Editor, NodeWithPos } from '@tiptap/react'; declare function getSelectedBlockNodes(editor: Editor): Node[]; /** * Retrieves all nodes of specified types from the current selection. * @param selection The current editor selection * @param allowedNodeTypes An array of node type names to look for (e.g., ["image", "table"]) * @returns An array of objects containing the node and its position */ declare function getSelectedNodesOfType(selection: Selection, allowedNodeTypes: string[]): NodeWithPos[]; /** * Check whether the current selection is fully within nodes * whose type names are in the provided `types` list. * * - NodeSelection → checks the selected node. * - Text/AllSelection → ensures all textblocks within [from, to) are allowed. */ declare function selectionWithinConvertibleTypes(editor: Editor, types?: string[]): boolean; export { getSelectedBlockNodes, getSelectedNodesOfType, selectionWithinConvertibleTypes };