/**
 * Builds a reverse mapping from validation rule IDs to field info.
 *
 * Walks sections -> groups -> fields, reads `validation_rules` arrays,
 * and produces a Record<rule_id, { field_id, field_label }>.
 *
 * Global validation IDs map to { field_id: '__document', field_label: 'Document' }.
 */
export interface RuleFieldMapping {
    field_id: string;
    field_label: string;
}
interface FieldLike {
    id: string;
    label?: string;
    fields?: FieldLike[];
    validation_rules?: string[];
}
interface SectionLike {
    groups?: FieldLike[];
}
/**
 * Build a reverse map from validation rule IDs to the fields/groups that reference them.
 *
 * @param sections - Form sections containing groups and fields
 * @param global_validations - Optional array of rule IDs that apply document-wide
 * @returns Record mapping rule_id to { field_id, field_label }
 */
export declare function build_rule_field_map(sections: SectionLike[], global_validations?: string[]): Record<string, RuleFieldMapping>;
export {};
//# sourceMappingURL=build_rule_field_map.d.ts.map