import type { EditorState, Transaction } from 'prosemirror-state';
import type { EditorView } from '../../../tiptap/pm/view';
/**
 * Reorder rows on an existing transaction. Moves rows in range [from.start, from.end]
 * to the position before row `to`. Does NOT dispatch.
 */
export declare function reorderRowsTr(tr: Transaction, state: EditorState, from: {
    start: number;
    end: number;
}, to: number): void;
/**
 * Reorder columns on an existing transaction. Moves columns in range
 * [from.start, from.end] to the position before column `to`. Does NOT dispatch.
 */
export declare function reorderColumnsTr(tr: Transaction, state: EditorState, from: {
    start: number;
    end: number;
}, to: number): void;
/**
 * Reorder rows: move rows [from.start..from.end] before row `to`.
 */
export declare const reorderRows: (from: {
    start: number;
    end: number;
}, to: number) => (state: EditorState, dispatch?: (tr: Transaction) => void) => boolean;
/**
 * Reorder columns: move columns [from.start..from.end] before column `to`.
 */
export declare const reorderColumns: (from: {
    start: number;
    end: number;
}, to: number) => (state: EditorState, dispatch?: (tr: Transaction) => void) => boolean;
/**
 * Move the currently selected full columns left or right.
 * Composes reorder + selection on a single transaction.
 */
export declare const moveColumns: (direction: 'left' | 'right') => (state: EditorState, dispatch?: (tr: Transaction) => void, view?: EditorView) => boolean;
/**
 * Move the currently selected full rows up or down.
 * Composes reorder + selection on a single transaction.
 */
export declare const moveRows: (direction: 'up' | 'down') => (state: EditorState, dispatch?: (tr: Transaction) => void, view?: EditorView) => boolean;
//# sourceMappingURL=reorder.d.ts.map