import { SylApi, Types } from '@syllepsis/adapter'; import { AttributeSpec, Node as ProsemirrorNode, ResolvedPos } from 'prosemirror-model'; import { EditorState } from 'prosemirror-state'; import { EditorView } from 'prosemirror-view'; declare const createCellAttrs: (defaultColWidth: number, extraAttrs?: Types.StringMap) => Types.StringMap; declare const getCellAttrs: (dom: Element, extraAttrs?: Types.StringMap) => Types.StringMap; declare const setCellAttrs: (node: ProsemirrorNode, extraAttrs?: Types.StringMap) => Types.StringMap; declare const createTableNode: (_row: number, column: number, config: { cellWidth?: number; useTableHeader?: boolean; }) => { type: string; content: { type: string; content: { type: string; attrs: { colwidth: (number | undefined)[]; } | undefined; content: { type: string; }[]; }[]; }[]; } | null; declare const closestCell: ($pos: ResolvedPos) => { node: ProsemirrorNode; from: number; to: number; } | undefined; declare const closestTable: ($pos: ResolvedPos) => { node: ProsemirrorNode; from: number; to: number; } | undefined; declare const goToCell: (state: EditorState, dispatch: EditorView['dispatch'], dir?: 1 | -1) => boolean; declare const judgeSelectAllTable: (editor: SylApi) => boolean; declare const canSplitCell: (editor: SylApi) => boolean; declare const tableOperation: { cut(editor: SylApi): boolean | undefined; copy(editor: SylApi): boolean; mergeCells(editor: SylApi): boolean; splitCells(editor: SylApi): boolean; addRowBefore(editor: SylApi): boolean; addRowAfter(editor: SylApi): boolean; addColumnBefore(editor: SylApi): boolean; addColumnAfter(editor: SylApi): boolean; deleteRow(editor: SylApi): boolean; deleteColumn(editor: SylApi): boolean; deleteTable(editor: SylApi): boolean; canSplitCell: (editor: SylApi) => boolean; }; export { canSplitCell, closestCell, closestTable, createCellAttrs, createTableNode, getCellAttrs, goToCell, judgeSelectAllTable, setCellAttrs, tableOperation, };