/** * Shared OOXML helpers for checklist DOCX processing. * * Extracted from format-checklist-docx.ts for reuse by the import module. */ import type { Document as XMLDocument, Element } from '@xmldom/xmldom'; export declare const DOCUMENTS_HEADERS: string[]; export declare const ACTION_ITEMS_HEADERS: string[]; export declare const ISSUES_HEADERS: string[]; export type RowType = 'stage_heading' | 'main_entry' | 'citation' | 'signatory' | 'action' | 'issue' | 'unknown'; /** * Classify a documents table row based on the ID and title cell text. */ export declare function classifyRow(idText: string, titleText: string): RowType; export declare function getDirectChildRows(table: Element): Element[]; export declare function getDirectChildCells(row: Element): Element[]; export declare function getCellText(tc: Element): string; /** * Find a table by matching its header row against expected headers. */ export declare function findTableByHeaders(xmlDoc: XMLDocument, headers: string[]): Element | null; /** * Returns true if a row is a docx-templates control row ({FOR ...} / {END-FOR ...}). * These are identified by tiny font size (≤ 4 half-points) or {FOR / {END-FOR text. */ export declare function isControlRow(row: Element): boolean; export declare const RENDER_VERSION_MARKER = ""; /** * Extract the render version marker from document text content. * Returns the version string or null if not found. */ export declare function extractRenderVersion(xmlDoc: XMLDocument): string | null; //# sourceMappingURL=docx-table-helpers.d.ts.map