/** * Rendering a page number in an OOXML number format — the browser-side counterpart of the .NET * `NumberFormats.Render`, used by the paginator to fill in `[data-field]` page-number markers. * * Two vocabularies reach this module and both are handled here so callers never have to know which * one they hold: * * - `ST_NumberFormat` tokens (`"lowerRoman"`, …), from a section's `w:pgNumType/@w:fmt` — * stamped on the section wrapper as `data-page-num-fmt`. * - Field `\*` general-formatting switch arguments (`"roman"`, `"ROMAN"`, `"alphabetic"`, * `"ALPHABETIC"`, `"Arabic"`), from a field's own instruction — stamped as `data-field-format`. * Case is load-bearing: `roman` is `i, ii, iii` and `ROMAN` is `I, II, III`. * * An unrecognized token renders as decimal, matching how Word treats a format it does not * implement — a page number that reads "12" is wrong in style; one that reads "" is a hole. */ /** * Render `value` in `format`. `format` may be an `ST_NumberFormat` token or a `\*` switch argument; * an absent or unrecognized one renders as decimal. */ export declare function formatPageNumber(value: number, format?: string | null): string; //# sourceMappingURL=page-number-format.d.ts.map