import { Command, EditorState, Transaction } from '@tiptap/pm/state';
import { Direction } from '@tiptap/pm/tables';

export declare function deleteTable(state: EditorState, dispatch?: (tr: Transaction) => void): boolean;
export declare function deleteRow(state: EditorState, dispatch?: (tr: Transaction) => void): boolean;
export declare function deleteColumn(state: EditorState, dispatch?: (tr: Transaction) => void): boolean;
/**
 * Merge the selected cells into a single cell. Only available when
 * the selected cells' outline forms a rectangle.
 *
 * @public
 */
export declare function mergeCells(state: EditorState, dispatch?: (tr: Transaction) => void): boolean;
export declare function splitCell(state: EditorState, dispatch?: (tr: Transaction) => void): boolean;
export declare function addColumnAfter(state: EditorState, dispatch?: (tr: Transaction) => void): boolean;
export declare function addColumnBefore(state: EditorState, dispatch?: (tr: Transaction) => void): boolean;
export declare function addRowBefore(state: EditorState, dispatch?: (tr: Transaction) => void): boolean;
export declare function addRowAfter(state: EditorState, dispatch?: (tr: Transaction) => void): boolean;
export declare function goToNextCell(direction: Direction): Command;
