/** * PII Redaction Engine * * Detects and redacts personally identifiable information (PII) from content * to prevent leakage of sensitive data to the LLM. * * Redacts: emails, phone numbers, SSNs, credit cards, IP addresses * Supports allowlisting of trusted institutional phone numbers (e.g., Poison Control) */ import { type PIIAllowlistConfig } from './pii-allowlist.js'; export interface PIIRedactionResult { content: string; pii_types_redacted: string[]; pii_allowlisted: Array<{ type: string; value: string; reason: string; }>; content_modified: boolean; metadata: { redaction_counts: Record; allowlist_counts: Record; }; } /** * Redact PII from content * * @param content Content to redact PII from * @param sourceUrl Optional source URL for domain-scoped allowlisting * @param allowlistConfig Optional custom allowlist config */ export declare function redactPII(content: string, sourceUrl?: string, allowlistConfig?: PIIAllowlistConfig): PIIRedactionResult; /** * Check if content contains any PII (without redacting) */ export declare function containsPII(content: string): boolean; /** * Get list of PII types detected (without redacting) */ export declare function detectPIITypes(content: string): string[]; //# sourceMappingURL=pii-redactor.d.ts.map