/** * PII scrubber — detects and redacts Personally Identifiable Information * from crawled markdown, HTML, and extracted text before storage. * * GDPR Article 4(1): "any information relating to an identified or identifiable natural person" */ export interface PiiMatch { type: 'email' | 'phone' | 'ssn' | 'credit-card' | 'ip-address' | 'passport' | 'iban' | 'dob'; value: string; start: number; end: number; } export interface ScrubResult { text: string; matches: PiiMatch[]; scrubbed: boolean; } export declare function detectPii(text: string): PiiMatch[]; export declare function scrubPii(text: string): ScrubResult; export declare function hasPii(text: string): boolean; export declare function scrubObject>(obj: T, fields: (keyof T)[]): T;