import type { DocumentTableCellFormat } from '../work-document-table-cell-formatting'; import type { DocumentTableAlignment, DocumentTableCellMarginSide, DocumentTablePreferredWidthType } from '../work-document-table-geometry'; import type { DocumentTableRowHeightRule, DocumentTableRowOptions } from '../work-document-table-row'; import type { DocumentTablePropertyChanges, DocumentTableSizingState } from '../work-document-table-sizing'; import type { DocumentTableColumnWidthType } from '../work-document-table-column-widths'; export declare const PIXELS_PER_CENTIMETER: number; export type DocumentTablePropertiesTab = 'table' | 'row' | 'column' | 'cell'; export interface DocumentTablePropertiesDraft { table: { widthType: DocumentTablePreferredWidthType; width: string; alignment: DocumentTableAlignment; indent: string; }; row: { heightEnabled: boolean; height: string; heightRule: DocumentTableRowHeightRule; cantSplit: boolean; repeatHeader: boolean; }; column: { widthType: DocumentTableColumnWidthType; width: string; }; cell: { verticalAlign: DocumentTableCellFormat['verticalAlign']; useTableMargins: boolean; margins: Record; }; } export interface DocumentTablePropertiesSource { sizing: DocumentTableSizingState; rowOptions: DocumentTableRowOptions; cellFormat: DocumentTableCellFormat; canRepeatHeader: boolean; renderedTableWidth?: number; renderedRowHeight?: number; renderedColumnWidth?: number; renderedColumnWidths?: readonly number[]; } export interface DocumentTablePropertiesErrors { tableWidth: string | null; tableIndent: string | null; rowHeight: string | null; columnWidth: string | null; cellMargins: Partial>; } export declare function createDocumentTablePropertiesDraft(source: DocumentTablePropertiesSource): DocumentTablePropertiesDraft; export declare function documentTablePropertiesErrors(draft: DocumentTablePropertiesDraft): DocumentTablePropertiesErrors; export declare function hasDocumentTablePropertiesErrors(errors: DocumentTablePropertiesErrors): boolean; export declare function draftForTableWidthType(current: DocumentTablePropertiesDraft, widthType: DocumentTablePreferredWidthType, renderedTableWidth: number | undefined): DocumentTablePropertiesDraft; export declare function draftForColumnWidthType(current: DocumentTablePropertiesDraft, widthType: DocumentTableColumnWidthType, source: Pick): DocumentTablePropertiesDraft; export declare function documentTablePropertyChanges(initial: DocumentTablePropertiesDraft, current: DocumentTablePropertiesDraft, source: Pick): DocumentTablePropertyChanges | null;