import type { Editor } from '@tiptap/react';
/** 插列/删列时用的目标：当前列首格位置与列索引 */
export interface TableColumnMenuTarget {
    columnFirstCellPos: number;
    tableIndex: number;
    columnIndex: number;
}
/**
 * 表格插列（及删列等列操作）：执行前把选区移到目标列首格，执行命令，插列后可按 colRestore 恢复光标到原单元格。
 */
export declare function useTableInsertColumnRunAndClose(editor: Editor, editorWrapperRef: React.RefObject<HTMLDivElement | null>, getColumnTarget: () => TableColumnMenuTarget | null, onClose: () => void): (fn: () => void, colRestore?: 'before' | 'after') => void;
