import { t as ClockPort } from "../../clock-Cewekmhw.cjs"; import { t as OdtParagraph } from "../../paragraph-CRaLSzWz.cjs"; import { r as OdtTable, s as TableInit } from "../../table-BK_Ao-Y6.cjs"; import { ContentDocument, ContentParagraph, ContentTable } from "document-schema.js"; import { Package } from "odf.js"; //#region src/edit/odt/content.d.ts interface BuildOdtPackageOptions { readonly clock?: ClockPort; } declare function buildOdtPackage(content: ContentDocument, options?: BuildOdtPackageOptions): Package; interface PopulateParagraphOptions { readonly headings: "element" | "style-name" | "none"; } declare function populateParagraph(paragraph: OdtParagraph, block: ContentParagraph, options: PopulateParagraphOptions): void; declare function populateOdtTable(table: OdtTable, block: ContentTable): void; /** * The arguments that create the empty `table:table` a ContentTable is written into: no rows, since populateOdtTable appends one per ContentTableRow, and as many columns as the table's grid is wide. * * The grid width is what the rows and `columns` together state (tableGridColumnCount), so a table whose rows carry cells but which states no column widths still gets one `table:table-column` per grid column; a column with no stated width takes an equal share of the default table width, the same as any column created without one. Each column's own `widthPt` is passed through untouched, so a width the table does state is always written; `isHeader` is not part of this init at all, since populateOdtTable states it afterwards via OdtTable.setHeaderColumns, the identical two-step `setHeaderRows` already needs for the same reason on the row axis. * * Throws when the table has no rows: ODF requires a `table:table` to hold at least one `table:table-row`, so no faithful spelling exists, and dropping the table would lose it without a trace. `entryPoint` names the caller in the message. A table that breaks the grid rule is refused by populateOdtTable before it writes anything, and a table with no rows has no grid fault to report, so the two checks never compete. */ declare function odtTableInit(block: ContentTable, entryPoint: string): TableInit; //#endregion export { BuildOdtPackageOptions, PopulateParagraphOptions, buildOdtPackage, odtTableInit, populateOdtTable, populateParagraph };