import { Extension } from '@tiptap/core'; import { type EditorState } from '@tiptap/pm/state'; import { type DocumentTableRowHeightRule } from './work-document-table-row'; import { type DocumentTableAlignment, type DocumentTableCellMargins, type DocumentTableLayoutAlgorithm, type DocumentTableLayoutMode, type DocumentTablePreferredWidthType, type DocumentTableProperties } from './work-document-table-geometry'; import { type DocumentTablePropertyChanges } from './work-document-table-property-changes'; import { type DocumentTableColumnWidthType } from './work-document-table-column-widths'; export { normalizeDocumentTableGeometry, normalizeDocumentTableLayoutMode, } from './work-document-table-geometry'; export type { DocumentTableAlignment, DocumentTableCellMargins, DocumentTableGeometry, DocumentTableLayoutAlgorithm, DocumentTableLayoutMode, DocumentTablePreferredWidth, DocumentTablePreferredWidthType, DocumentTableProperties, } from './work-document-table-geometry'; export type { DocumentTablePropertyChanges } from './work-document-table-property-changes'; export interface DocumentTableSizingState { columnWidth: number | null; columnWidthType: DocumentTableColumnWidthType; rowHeight: number | null; rowHeightRule: DocumentTableRowHeightRule | null; layoutMode: DocumentTableLayoutMode; layoutAlgorithm: DocumentTableLayoutAlgorithm; preferredWidthType: DocumentTablePreferredWidthType; preferredWidth: number | null; alignment: DocumentTableAlignment; indent: number; cellMargins: DocumentTableCellMargins; selectedColumnCount: number; selectedRowCount: number; } declare module '@tiptap/core' { interface Commands { documentTableSizing: { setDocumentTableColumnWidth: (width: number, renderedColumnWidths?: readonly number[]) => ReturnType; setDocumentTableColumnWidthPercent: (width: number, renderedColumnWidths?: readonly number[], renderedTableWidth?: number) => ReturnType; setDocumentTableRowHeight: (height: number | null, rule?: DocumentTableRowHeightRule) => ReturnType; setDocumentTableLayoutMode: (mode: DocumentTableLayoutMode, renderedTableWidth?: number) => ReturnType; setDocumentTableAlignment: (alignment: DocumentTableAlignment) => ReturnType; setDocumentTableProperties: (properties: DocumentTableProperties) => ReturnType; setDocumentTablePropertyChanges: (changes: DocumentTablePropertyChanges) => ReturnType; setDocumentTableCellMargins: (margins: DocumentTableCellMargins) => ReturnType; distributeDocumentTableColumns: (renderedSelectionWidth?: number) => ReturnType; distributeDocumentTableRows: (renderedSelectionHeight?: number) => ReturnType; }; } } export declare const DocumentTable: import("@tiptap/core").Node; export declare const DocumentTableSizing: Extension; export declare function documentTableSizing(state: EditorState): DocumentTableSizingState | null;