/** * Worksheet sheet format properties (`CT_SheetFormatPr`). * * Citations: * - transitional sml.xsd `CT_SheetFormatPr` (~L2222–2232): * `baseColWidth`, `defaultColWidth`, **`defaultRowHeight` (required)**, * `customHeight`, `zeroHeight`, `thickTop`, `thickBottom`, * `outlineLevelRow`, `outlineLevelCol` * - `CT_Worksheet` sequence: sheetPr → dimension → sheetViews → * **sheetFormatPr** → cols → sheetData (~L2123–2125 / ~L2175–2177) * - docs/requirements/row-column-properties.md * - docs/specs/standard-height.md; docs/ooxml-mapping/standard-height.md * * Public authoring uses * {@link import('../workbook/worksheet').Worksheet.standardHeight} only. * Other `sheetFormatPr` attributes round-trip via `extraAttrsXml`. * * @private */ /** * Wire model for one `sheetFormatPr` element. * @private */ export interface SheetFormatPrModel { /** * Whether a `sheetFormatPr` element is present (authored or loaded). * When false, the serializer omits the element entirely. */ readonly present: boolean; /** * Sheet default row height in points (`@defaultRowHeight`). * XSD marks the attribute required when the element is present; authoring * always emits it. Soft-absent on parse when missing/non-finite/negative. */ readonly defaultRowHeight: number | undefined; /** * Opaque extra attributes excluding the modeled `defaultRowHeight`. * Carries baseColWidth, defaultColWidth, customHeight, zeroHeight, * thick*, outlineLevel*, and any future unrecognized attrs. */ readonly extraAttrsXml: string; } /** @private */ export interface SheetFormatPrHost { markDirty(): void; } /** Empty / absent element. @private */ export declare const EMPTY_SHEET_FORMAT_PR: SheetFormatPrModel; /** * `CT_Worksheet` local names that legally precede `sheetFormatPr` * (before `sheetData`). * @private */ export declare const SHEET_FORMAT_PR_PREDECESSORS: ReadonlyArray; /** * `CT_Worksheet` local names that follow `sheetFormatPr` before `sheetData`. * @private */ export declare const SHEET_FORMAT_PR_SUCCESSORS_BEFORE_SHEET_DATA: ReadonlyArray; /** * Insert index for a modeled `sheetFormatPr` among before-sheetData children. * After the last predecessor; before the first successor; else append. * @private */ export declare function findSheetFormatPrInsertIndex(localNames: ReadonlyArray): number; /** * Parse a `sheetFormatPr` element string into a model. * Soft-skips invalid `defaultRowHeight`; preserves all other attrs. * @private */ export declare function parseSheetFormatPrXml(elementXml: string): SheetFormatPrModel; /** * Serialize a sheetFormatPr model. Omits when `present` is false and nothing * authored. When present, always emits required `@defaultRowHeight` * (XSD use="required"); uses `0` if height is still undefined so the element * stays schema-valid. * @private */ export declare function serializeSheetFormatPrXml(model: SheetFormatPrModel): string | undefined; /** * Mutable sheet-format store for default row height. * @private */ export declare class SheetFormatPrImpl { private present; private defaultRowHeight; private extraAttrsXml; private host; bindHost(host: SheetFormatPrHost): void; replaceFromParse(model: SheetFormatPrModel | undefined): void; toModel(): SheetFormatPrModel; /** * Public getter contract: `0` when the sheet has no authored/loaded * default row height (mirrors `getRowHeight` / `getColumnWidth`). */ getStandardHeight(): number; setStandardHeight(height: number): void; private markDirty; }