/// import { CellGridData } from "../../../../commons/parse-doc"; import { ContainerElement, Editor, BlockElement, BlockContentElement, TextAlign, TextCommand } from "../../interface"; import { CellIndex, TableCellGrid, TableSelection } from "./CellGrid"; export declare function getTableMarginLeft(table: HTMLTableElement): number; export declare function getColItem(colGroup: HTMLTableColElement, colIndex: number): HTMLTableColElement | null; export declare function getColWidth(col: HTMLTableColElement): number; export declare function getColWidthAttr(col: HTMLTableColElement): number; export declare function setColWidth(col: HTMLTableColElement, width: number): void; export declare function createCol(editor: Editor, width?: number): HTMLTableColElement; export declare function createCell(cell?: CellGridData, tag?: 'th' | 'td'): HTMLTableDataCellElement | HTMLTableHeaderCellElement; export declare function getColGroup(ele: HTMLTableElement): HTMLTableColElement; export declare function getParentCell(elem: HTMLElement): HTMLTableCellElement | null; export declare function getParentTable(elem: HTMLElement): HTMLTableElement | null; export declare function getCellContainerById(editor: Editor, cellId: string): ContainerElement; export declare function getCellById(editor: Editor, cellId: string): HTMLTableCellElement; export declare function getCellColWidthByData(col: number, colSpan: number, colsWidth?: number[]): number; export declare function getCellChildContainer(cell: HTMLTableCellElement): ContainerElement; export declare function getTableContainer(block: BlockElement): BlockContentElement; export declare function getTable(block: BlockElement): HTMLTableElement; export declare function isNoBorder(block: BlockElement): boolean; export declare function isShowChart(block: BlockElement): boolean; export declare function splitCell(block: BlockElement, index: CellIndex): void; export declare function splitRowCells(block: BlockElement, rowIndex: number, onlyVirtual?: boolean): void; export declare function updateColTitle(block: BlockElement): void; export declare function insertRow(block: BlockElement, insertIndex: number): void; export declare function splitColCells(block: BlockElement, colIndex: number, onlyVirtual?: boolean): void; export declare function insertColumn(block: BlockElement, insertIndex: number): void; export declare function getTableSelection(block: BlockElement): TableSelection; export declare function mergeCells(editor: Editor, block: BlockElement): void; export declare const clearTableSelection: import("lodash").DebouncedFunc<(block: BlockElement, editor?: Editor) => void>; export declare function deleteColumn(block: BlockElement, selection: TableSelection): void; export declare function deleteRow(block: BlockElement, selection: TableSelection): void; export declare function isCellWriteable(editor: Editor, cell: HTMLTableCellElement): boolean; export declare function isSelectedCellsWriteable(editor: Editor, block: BlockElement): boolean; export declare function deleteSelectedRows(editor: Editor, block: BlockElement): void; export declare function deleteSelectedCols(editor: Editor, block: BlockElement): void; export declare function insertSelectedRow(editor: Editor, block: BlockElement, type: 'above' | 'below'): void; export declare function insertSelectedCol(editor: Editor, block: BlockElement, type: 'left' | 'right'): void; export declare function mergeSelectedCells(editor: Editor, block: BlockElement): void; export declare function splitSelectedCells(editor: Editor, block: BlockElement): void; export declare function setSelectedCellsColor(editor: Editor, block: BlockElement, background: boolean, color: TextCommand): void; export declare function removeSelectedCellsBackground(editor: Editor, block: BlockElement): void; export declare function getCellAlign(block: BlockElement, cell: CellIndex, gridData: TableCellGrid | null): TextAlign | undefined; export declare function getSelectionAlign(block: BlockElement, selection: TableSelection, gridData: TableCellGrid | null): TextAlign | undefined; export declare function setCellAlign(block: BlockElement, cell: CellIndex, align?: TextAlign): void; export declare function setCellColor(block: BlockElement, cell: CellIndex, background: boolean, color: string | undefined): void; export declare function clearCellFontColor(block: BlockElement, cell: CellIndex): void; export declare function removeCellBackground(block: BlockElement, cell: CellIndex): void; export declare function getCellBackgroundColor(block: BlockElement, cell: CellIndex, gridData: TableCellGrid | null): string | undefined; export declare function getCellFontColor(block: BlockElement, cell: CellIndex, gridData: TableCellGrid | null): string | undefined; export declare function deleteTable(editor: Editor, block: BlockElement): void; export declare function updatedColWidth(table: HTMLTableElement, col: HTMLTableColElement, width: number, gridData?: TableCellGrid): void; export declare function isEmptyTable(table: HTMLTableElement): boolean; export declare function isStripeStyleTable(table: HTMLTableElement): boolean; export declare function setStripeStyle(block: BlockElement): void; export declare function removeStripeStyle(block: BlockElement): void; export declare function hasRowTitle(table: HTMLTableElement): boolean; export declare function setRowTitle(block: BlockElement): void; export declare function removeRowTitle(block: BlockElement): void; export declare function hasColTitle(table: HTMLTableElement): boolean; export declare function setColTitle(block: BlockElement): void; export declare function removeColTitle(block: BlockElement): void;