/**
 * Agent Privacy Analyzer
 *
 * Analyzes tool traces and agent interactions for privacy issues.
 * Detects PII egress, cross-tenant data bleed, memory/caching of
 * sensitive data, and consent compliance issues.
 *
 * @module agents/agent-privacy
 */
import type { Severity, Finding } from "../certification/types.js";
/**
 * PII type detected in traces
 */
export type PIIType = "email" | "phone" | "ssn" | "credit-card" | "ip-address" | "name" | "address" | "dob" | "medical" | "financial" | "custom";
/**
 * Privacy finding from trace analysis
 */
export interface PrivacyFinding {
    type: PIIType;
    location: "input" | "output" | "memory" | "log";
    tool: string;
    severity: Severity;
    description: string;
    evidence: string;
    redactedSample?: string;
    gdprRelevant: boolean;
    ccpaRelevant: boolean;
}
/**
 * Trace entry from tool invocation logs
 */
export interface TraceEntry {
    timestamp: string;
    tool: string;
    input: string;
    output?: string;
    sessionId?: string;
    userId?: string;
    metadata?: Record<string, unknown>;
}
/**
 * Privacy analysis result
 */
export interface PrivacyAnalysisResult {
    totalTraces: number;
    tracesAnalyzed: number;
    piiDetected: number;
    findings: PrivacyFinding[];
    byType: Record<PIIType, number>;
    byTool: Record<string, number>;
    recommendations: string[];
}
/**
 * Run privacy analysis on tool traces
 */
export declare function runPrivacyAnalysis(tracesDir: string, options?: {
    detectCrossTenant?: boolean;
    customPatterns?: Array<{
        name: string;
        pattern: RegExp;
        severity: Severity;
    }>;
}): Promise<PrivacyAnalysisResult>;
/**
 * Convert privacy findings to certification findings
 */
export declare function privacyToFindings(result: PrivacyAnalysisResult): Finding[];
//# sourceMappingURL=agent-privacy.d.ts.map