import { EditorView } from '@milkdown/prose/view';
import { FocusedTable } from './table-selection';
/**
 * 表格行插入方向。
 */
export type TableRowInsertDirection = 'above' | 'below';
/**
 * 表格列插入方向。
 */
export type TableColumnInsertDirection = 'left' | 'right';
/**
 * 表格单元格对齐方式。
 */
export type TableCellAlignment = 'left' | 'center' | 'right';
/**
 * 在目标行上下插入一行。
 */
export declare const insertTableRow: (view: EditorView, focusedTable: FocusedTable, direction: TableRowInsertDirection) => boolean;
/**
 * 删除目标行（首行表头不允许删除）。
 */
export declare const removeTableRow: (view: EditorView, focusedTable: FocusedTable) => boolean;
/**
 * 在目标列左右插入一列。
 */
export declare const insertTableColumn: (view: EditorView, focusedTable: FocusedTable, direction: TableColumnInsertDirection) => boolean;
/**
 * 删除目标列（至少保留一列）。
 */
export declare const removeTableColumn: (view: EditorView, focusedTable: FocusedTable) => boolean;
/**
 * 将目标列设置为指定对齐方式。
 */
export declare const alignTableColumn: (view: EditorView, focusedTable: FocusedTable, alignment: TableCellAlignment) => boolean;
//# sourceMappingURL=table-row-insertion.d.ts.map