import type { Table } from './model.js'; import type { TableBorders, TableCellMargins } from './table-model.js'; import { type XmlDocument, type XmlElement } from './xml.js'; /** Word's default borders for a newly inserted table (single 1/2 pt lines, automatic color). */ export declare const DEFAULT_TABLE_BORDERS: TableBorders; /** Serializes `borders` as `w:tblBorders` (or `w:tcBorders`) in schema order. */ export declare function buildBorders(doc: XmlDocument, borders: TableBorders, tag: 'tblBorders' | 'tcBorders'): XmlElement; /** `w:tblCellMar` / `w:tcMar` with children in schema order (top, left, bottom, right). */ export declare function buildMargins(doc: XmlDocument, margins: TableCellMargins, tag: 'tblCellMar' | 'tcMar'): XmlElement | undefined; /** Number of grid columns a table spans (the widest row, counting horizontal merges). */ export declare function tableColumnCount(table: Table): number; /** * Builds `w:tblPr` and `w:tblGrid` for a table the editor created. Column widths come from the * model's grid when present, otherwise the content width is shared equally. */ export declare function buildNewTableProperties(doc: XmlDocument, table: Table, contentWidthTwips: number): { tblPr: XmlElement; tblGrid: XmlElement; }; //# sourceMappingURL=table-defaults.d.ts.map