import type { NodeType, Node as PMNode } from '@atlaskit/editor-prosemirror/model'; import { Slice } from '@atlaskit/editor-prosemirror/model'; import type { EditorState } from '@atlaskit/editor-prosemirror/state'; import type { Rect } from '../table-map'; import type { CellSelectionRect, Dispatch } from '../types'; export declare function pastedCells(slice: Slice): CellSelectionRect | null; export declare function fitSlice(nodeType: NodeType, slice: Slice): PMNode; export declare function clipCells({ width: currentWidth, height: currentHeight, rows: currentRows }: CellSelectionRect, newWidth: number, newHeight: number): CellSelectionRect; export declare function insertCells(state: EditorState, dispatch: Dispatch, tableStart: number, rect: Rect, cells: CellSelectionRect): void;