open-agreements
Version:
Open-source legal template filling CLI and library
19 lines • 1.14 kB
TypeScript
import type { Document as XmlDocument, Element as XmlElement } from '@xmldom/xmldom';
export interface NumberingSnapshot {
paragraph: XmlElement;
numId: string;
ilvl: number;
/** Nine scalar values; unseen levels use their effective starts, or zero if undefined. */
counters: number[];
/** Detached effective definition with instance overrides folded in. Never an input node. */
effectiveAbstract: XmlElement;
}
/**
* Pure counter projection for a transient renderer copy, not editable-DOCX rewriting.
* OOXML defaults: absent start = 0; absent lvlRestart = previous level; 0 = never.
* https://learn.microsoft.com/en-us/dotnet/api/documentformat.openxml.wordprocessing.levelrestart
* https://learn.microsoft.com/en-us/dotnet/api/documentformat.openxml.wordprocessing.startnumberingvalue
* https://learn.microsoft.com/en-us/dotnet/api/documentformat.openxml.wordprocessing.startoverridenumberingvalue
*/
export declare function resolveNumberingSnapshots(document: XmlDocument, styles: XmlDocument | undefined, numbering: XmlDocument): NumberingSnapshot[];
//# sourceMappingURL=numbering-counters.d.ts.map