/** * ATR-to-Generic-Regex Converter * * Exports ATR rules as a flat list of regex patterns with metadata. * Designed for consumption by any security tool that supports regex matching. * Format: JSON array of { id, title, severity, category, patterns[] } * * Used by: Cisco AI Defense, Microsoft Agent Governance Toolkit, custom integrations. * * @module agent-threat-rules/converters/generic-regex */ import type { ATRRule, ATRSeverity, ATRReferences } from '../types.js'; export interface GenericRegexRule { readonly id: string; readonly title: string; readonly severity: ATRSeverity; readonly category: string; readonly subcategory: string; readonly scan_target: string; readonly patterns: readonly GenericRegexPattern[]; readonly references: ATRReferences | undefined; } export interface GenericRegexPattern { readonly field: string; readonly regex: string; readonly flags: string; readonly description: string; } /** * Convert a single ATR rule to generic regex format. */ export declare function ruleToGenericRegex(rule: ATRRule): GenericRegexRule; /** * Convert all ATR rules to a single generic regex export. */ export declare function rulesToGenericRegex(rules: readonly ATRRule[]): readonly GenericRegexRule[]; //# sourceMappingURL=generic-regex.d.ts.map