import { CellBorders, Table } from '../core/document-model/index.js'; import { PoNode } from '../core/po-helpers.js'; import { ParseContext } from './document-parser.js'; /** * Parse a `w:tbl` (ECMA-376 Part 1 §17.4) in preserveOrder shape into the typed * {@link Table} model: its properties (style ref, look, width, layout, borders, * default cell margins), column grid and rows. Vertical merges are resolved in a * second pass so cells carry the resolved {@link CellMerge} role, not the raw * `w:vMerge` markers. * * @param tbl The `w:tbl` PoNode. * @param ctx The document-wide parse context (resolvers for colour, images, etc.). * @returns The parsed table. */ export declare function parseTable(tbl: PoNode, ctx?: ParseContext): Table; /** * A `w:tcBorders` / `w:tblBorders` / §17.6.10 `w:pgBorders` element: the rule on * each edge. Every one of them is spelled the same way. * * @param node The borders element, or `undefined`. * @returns The edges that name a rule, or `undefined` when none do. */ export declare function parseBorders(node: PoNode | undefined): CellBorders | undefined;