import { Node } from '@tiptap/core'; declare module '@tiptap/core' { interface Commands { textBox: { /** Insert a free-floating text box at the cursor. */ insertTextBox: (attrs?: { width?: number; height?: number; backgroundColor?: string; borderColor?: string; }) => ReturnType; }; } } /** * TextBox — a Word-style floating text frame that can be dragged and resized. * Renders as a `
` block with rich content inside (paragraphs, lists, etc.). * * Behaviour: * - Inserts at the current selection. * - Drag the `⠿` handle on the top-left to move it on the page. * - Eight corner / edge handles let you resize while keeping content reflowing inside. * - The position is persisted via `data-x` / `data-y` attributes. * * Useful for callouts, sidebars, pull quotes, diagrams. */ export declare const TextBox: Node;