import { ParentConfig, Node } from "@tiptap/core"; export interface TableOptions { HTMLAttributes: Record; resizable: boolean; handleWidth: number; cellMinWidth: number; lastColumnResizable: boolean; allowTableNodeSelection: boolean; } declare module "@tiptap/core" { interface NodeConfig { /** * Table Role */ tableRole?: string | ((this: { name: string; options: Options; storage: Storage; parent: ParentConfig>["tableRole"]; }) => string); } } declare module "@tiptap/core" { interface Commands { table: { /** * Insert a node or string of HTML at the current position. */ setTableProps: (props: any) => ReturnType; deleteTable: () => ReturnType; addRowBefore: () => ReturnType; addRowAfter: () => ReturnType; /** * Delete the current table row * @returns True if the command was successful, otherwise false * @example editor.commands.deleteRow() */ deleteRow: () => ReturnType; addColumnBefore: () => ReturnType; addColumnAfter: () => ReturnType; /** * Delete the current table column * @returns True if the command was successful, otherwise false * @example editor.commands.deleteColumn() */ deleteColumn: () => ReturnType; mergeCells: () => ReturnType; splitCell: () => ReturnType; goToNextCell: () => ReturnType; goToPreviousCell: () => ReturnType; setCellSelection: (position: { anchorCell: number; headCell?: number; }) => ReturnType; }; } } export declare const Table: Node; export default Table;