/** * DOCX Reader - SDT Helper Parsers * * Standalone parsers for SDT-related elements that don't depend on * the main reader context (parseParagraph etc.): * - `parseCheckBox` — w14:checkbox SDT specialization * - `parseTocInstruction` — TOC field instruction string parser */ import type { XmlElement } from "../../xml/types.js"; import { type Mutable } from "../core/internal-utils.js"; import type { CheckBox, TableOfContents } from "../types.js"; /** * Parse a w14:checkbox SDT element. * * Handles `w14:checked`, `w14:checkedState`, `w14:uncheckedState`. */ export declare function parseCheckBox(checkBoxEl: XmlElement): CheckBox; /** * Parse a TOC field instruction string and populate the given TableOfContents object. * * Recognizes common TOC switches: * - `\o "1-3"` — heading style range * - `\h` — hyperlinks * - `\c "label"` — caption label (table of figures) * - `\s "id"` — sequence field identifier * - `\p "."`/`"-"`/`"_"` — leader character * - `\t "Style,Level;..."` — custom styles with levels */ export declare function parseTocInstruction(instr: string, toc: Mutable): void;