import type { Editor } from '../../tiptap/core/index';
export type CapturedCell = {
    element?: HTMLElement;
    id?: string;
    pos: number;
};
export type CapturedTableCellSelection = CapturedCell[] | null;
export declare const captureSelectedCellPositions: (editor: Editor, selectedCellIds?: readonly string[]) => CapturedTableCellSelection;
/**
 * Restores a {@link RicosCellSelection} from captured positions (if needed) and runs `run`.
 * Skips the selection-restore dispatch when the live editor selection is already a cell selection.
 * The selection-restore tr is marked as not-undoable so the user's undo stack sees a single entry.
 */
export declare const runWithTableCellSelection: (editor: Editor, capturedCells: CapturedTableCellSelection, run: () => void) => void;
//# sourceMappingURL=capture-table-cell-selection.d.ts.map