export type ConsentLevel = 'none' | 'anonymous-aggregate' | 'anonymous-detail' | 'pseudonymous' | 'identified'; export type RedactionRule = { name: string; pattern: RegExp; replacement: string; }; export type ExportFormat = 'jsonl' | 'csv'; export type ExportOptions = { consentLevel: ConsentLevel; format?: ExportFormat; outputPath?: string; dryRun?: boolean; }; export type ExportResult = { recordCount: number; format: ExportFormat; outputPath?: string; dryRun: boolean; redactedFields: number; auditId: string; }; export type AuditEntry = { id: string; timestamp: string; consentLevel: ConsentLevel; format: ExportFormat; recordCount: number; redactedFields: number; dryRun: boolean; outputPath?: string; };