import { BodyElement, ParagraphProperties, RunProperties, StyleSheet } from '../document-model/index.js'; import { ResolvedParagraphProperties, ResolvedRunProperties } from './types.js'; /** * Null Object for {@link StyleSheet} — parsers fall back to it when a package has * no styles part, and grid-based formats (xlsx) render with it outright. */ export declare const EMPTY_STYLE_SHEET: StyleSheet; /** * Resolve a run's effective properties (ECMA-376 §17.7.2): document defaults → * paragraph-style run layer → run-style layer → direct run properties. * Memoized by the identity of `(sheet, runDirect, paragraphDirect)`. * * @param runDirect The run's direct properties (its `styleId` drives the run-style layer). * @param paragraphDirect The owning paragraph's direct properties (its `styleId` drives the paragraph-style layer). * @param sheet The stylesheet supplying defaults and style chains. */ export declare function resolveRunProperties(runDirect: RunProperties, paragraphDirect: ParagraphProperties, sheet: StyleSheet): ResolvedRunProperties; /** * Resolve a paragraph's effective properties (ECMA-376 §17.7.2): document * defaults → paragraph-style chain → direct properties. Memoized by the * identity of `(sheet, paragraphDirect)`. * * @param paragraphDirect The paragraph's direct properties (its `styleId` drives the style chain). * @param sheet The stylesheet supplying defaults and style chains. */ export declare function resolveParagraphProperties(paragraphDirect: ParagraphProperties, sheet: StyleSheet): ResolvedParagraphProperties; /** * Resolve the style cascade across an entire body so the tree carries final * effective run/paragraph properties (FlowDoc transform, ir-design stage 6). * Recurses into tables and shape text. Mutates the tree IN PLACE and returns it; * resolving again over {@link EMPTY_STYLE_SHEET} is the identity. */ export declare function resolveBodyStyles(body: ReadonlyArray, sheet: StyleSheet): ReadonlyArray; /** * Run {@link resolveBodyStyles} over every header/footer body in the map. * Mutates each body in place and returns the same map. */ export declare function resolveHeadersFootersStyles(hf: ReadonlyMap>, sheet: StyleSheet): ReadonlyMap>;