import { Node as ProseMirrorNode } from '@tiptap/pm/model';
import { Editor } from '@tiptap/react';
import { IBEditorTableCellAddress } from '../core/types';
interface IBEditorTableCommandSelectionRange {
    anchorCell: HTMLTableCellElement;
    cells: HTMLTableCellElement[];
    headCell: HTMLTableCellElement;
}
export declare function getEditorRoot(editor: Editor): HTMLElement | null;
export declare function forEachSelectedCellPosition(editor: Editor, callback: (node: ProseMirrorNode, position: number) => void): boolean;
export declare function resolveBEditorTableCellPositionFromAddress(editor: Editor, cell: HTMLTableCellElement): number | null;
export declare function resolveBEditorTableCellPositionMapFromAddresses(editor: Editor, cells: HTMLTableCellElement[]): Map<HTMLTableCellElement, number> | null;
export declare function resolvePreferredBEditorTableCommandCellGroups(...groups: HTMLTableCellElement[][]): HTMLTableCellElement[];
export declare function resolveBEditorTableCommandCells(editor: Editor | null | undefined, rememberedCells?: HTMLTableCellElement[]): HTMLTableCellElement[];
export declare function resolveBEditorTableCommandSelectionRange(cells: HTMLTableCellElement[]): IBEditorTableCommandSelectionRange | null;
export declare function selectCurrentCell(editor: Editor): boolean;
export declare function restoreBEditorStyleTargetMarkers(editor: Editor, addresses: IBEditorTableCellAddress[]): void;
export declare function setBEditorTableCellSelectionFromDom(editor: Editor, anchorCell: HTMLTableCellElement, headCell?: HTMLTableCellElement): boolean;
export declare function clearBEditorTableCellSelectionState(editor: Editor, fallbackCell?: HTMLTableCellElement | null): boolean;
export declare function syncBEditorTableCellSelectionFromDom(editor: Editor, cells: HTMLTableCellElement[]): boolean;
export declare function restoreBEditorTableCommandSelection(editor: Editor): HTMLTableCellElement[];
export declare function executeBEditorTableCommand(editor: Editor, command: () => boolean | void): boolean;
export {};
