import { ParagraphProperties } from '../core/document-model/index.js'; import { ThemeFonts } from '../core/drawingml/theme-parser.js'; /** * §17.3.1.1/§17.3.1.3 — the gap `w:*Autospacing` asks the consumer for. Word's * own automatic value is HTML's 14pt, and only a document old enough to state * no `w:compatSetting compatibilityMode` still gets it: from Word 2007 on the * automatic value is nothing at all, which is what both references leave. */ export declare const HTML_AUTO_SPACING_PT = 14; /** * Parse a `w:pPr` element (ECMA-376 Part 1 §17.3.1) into {@link ParagraphProperties}. * Reads the style reference, alignment, spacing, indentation, page-break-before, * bidi, outline level, numbering reference (`w:numPr`) and paragraph-mark run * properties (`w:rPr`); unrecognized or out-of-range values are skipped. * * @param pPr The `w:pPr` element in flat (fast-xml-parser) shape, or anything * non-element (yielding an empty result). * @param autoSpacingPt What `w:beforeAutospacing`/`w:afterAutospacing` resolve * to — {@link HTML_AUTO_SPACING_PT} for a document that states no * compatibility mode, and 0 (the default) for every Word 2007-or-later one. * @returns The extracted properties; an empty object when `pPr` is absent. */ export declare function parseParagraphProperties(pPr: unknown, autoSpacingPt?: number, themeFonts?: ThemeFonts): ParagraphProperties;