/** * Property-order discipline for emitted OOXML property containers. * * Each table lists the subset of child local names the generation emitters * produce, in the relative order the WML schema sequence declares. Emitters * never appendChild properties directly — they collect them into a map and * call appendInOrder, which throws on any name missing from its table so * adding a new property forces a conscious ordering decision. */ /** * Child order for w:pPr (CT_PPr). Subset actually emitted, in schema-relative * order; w:rPr (paragraph-mark run properties) precedes w:sectPr at the end. * * @conformance ECMA-376 edition 5, Part 1 § 17.3.1.26 */ export declare const PPR_ORDER: readonly ["pStyle", "keepNext", "keepLines", "pageBreakBefore", "widowControl", "numPr", "pBdr", "shd", "tabs", "spacing", "ind", "contextualSpacing", "jc", "rPr", "sectPr"]; /** * Child order for w:rPr (CT_RPr / EG_RPrBase). Subset actually emitted. * * @conformance ECMA-376 edition 5, Part 1 § 17.3.2.28 */ export declare const RPR_ORDER: readonly ["rStyle", "rFonts", "b", "bCs", "i", "iCs", "caps", "smallCaps", "strike", "vanish", "color", "sz", "szCs", "highlight", "u", "vertAlign"]; /** Child order for w:sectPr (CT_SectPr). Header/footer references lead. */ export declare const SECTPR_ORDER: readonly ["headerReference", "footerReference", "type", "pgSz", "pgMar", "pgNumType", "titlePg", "docGrid"]; /** Child order for w:tblPr (CT_TblPr). */ export declare const TBLPR_ORDER: readonly ["tblStyle", "tblW", "jc", "tblBorders", "tblLayout", "tblCellMar", "tblLook"]; /** * Child order for w:trPr (CT_TrPrBase). Subset actually emitted. * * @conformance ECMA-376 edition 5, Part 1 § 17.4.81 */ export declare const TRPR_ORDER: readonly ["trHeight", "tblHeader"]; /** Child order for w:tcPr (CT_TcPr). */ export declare const TCPR_ORDER: readonly ["tcW", "gridSpan", "vMerge", "tcBorders", "shd", "tcMar", "vAlign"]; export type PropMap = ReadonlyMap; /** * Append collected property elements to a container in the order declared by * the table. Repeatable properties (e.g. w:headerReference) are passed as * arrays and appended in collection order at their slot. * * Throws GenerationInternalError when the map contains a local name absent * from the order table — ordering bugs fail loudly at build time instead of * producing schema-invalid output. */ export declare function appendInOrder(container: Element, props: PropMap, order: readonly string[]): void; //# sourceMappingURL=ordering.d.ts.map