/** * Declarative option selection for DOCX templates. * * Handles radio-button `( )` and checkbox `[ ]` option groups in table cells. * A per-template `selections.json` config defines groups, and this module * deletes unselected options + their sub-clauses from the DOCX XML before filling. */ import { z } from 'zod'; export declare const SelectionsConfigSchema: z.ZodObject<{ groups: z.ZodArray; standalone: z.ZodOptional; markerless: z.ZodOptional; inline: z.ZodOptional; cellContext: z.ZodOptional; subClauseStopPatterns: z.ZodOptional>; options: z.ZodArray, z.ZodObject<{ field: z.ZodString; equals: z.ZodUnion; }, z.core.$strip>, z.ZodObject<{ field: z.ZodString; }, z.core.$strip>]>; replaceWith: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; }, z.core.$strip>; export type SelectionsConfig = z.infer; export declare function loadSelectionsConfig(path: string): SelectionsConfig; /** * Apply option selections to a DOCX buffer and return the modified buffer. * * For each group in the config: * 1. Find option paragraphs by marker text + radio/checkbox prefix * 2. Verify they share the same table cell * 3. Classify paragraphs as header, option, or sub-clause * 4. Evaluate triggers to determine selected options * 5. Remove unselected options + sub-clauses * 6. Mark selected options as checked */ export declare function applySelections(inputPath: string, outputPath: string, config: SelectionsConfig, data: Record): Promise; //# sourceMappingURL=selector.d.ts.map