/** * Agent Compliance Framework — Enterprise compliance testing with built-in regulations. * * Supports GDPR, SOC2, HIPAA, PCI-DSS out of the box. Extensible with custom regulations. * * @example * ```typescript * const framework = new ComplianceFramework(); * framework.addRegulation('GDPR', gdprRules); * const report = framework.audit(traces); * ``` */ import type { AgentTrace } from './types'; export interface ComplianceRule { id: string; name: string; description: string; severity: 'critical' | 'high' | 'medium' | 'low'; category: string; check: (trace: AgentTrace) => ComplianceCheckResult; } export interface ComplianceCheckResult { passed: boolean; message: string; evidence?: string[]; step_indices?: number[]; } export interface RegulationResult { regulation: string; rules_checked: number; rules_passed: number; rules_failed: number; findings: ComplianceFinding[]; } export interface ComplianceFinding { regulation: string; rule_id: string; rule_name: string; severity: 'critical' | 'high' | 'medium' | 'low'; category: string; passed: boolean; message: string; trace_id?: string; evidence?: string[]; step_indices?: number[]; } export interface ComplianceReport { timestamp: string; traces_audited: number; regulations_checked: string[]; overall_passed: boolean; summary: { total_rules: number; passed: number; failed: number; critical_failures: number; }; regulation_results: RegulationResult[]; findings: ComplianceFinding[]; } export declare class ComplianceFramework { private regulations; constructor(); /** Add or replace a regulation with custom rules. */ addRegulation(name: string, rules: ComplianceRule[]): void; /** Remove a regulation. */ removeRegulation(name: string): boolean; /** List all registered regulation names. */ listRegulations(): string[]; /** Get rules for a specific regulation. */ getRules(regulation: string): ComplianceRule[] | undefined; /** Audit traces against all (or specified) regulations. */ audit(traces: AgentTrace[], regulations?: string[]): ComplianceReport; } /** Format a compliance report for console output. */ export declare function formatFrameworkReport(report: ComplianceReport): string; //# sourceMappingURL=compliance-framework.d.ts.map