import { PIIDetection } from './detectors.js'; /** * Pseudonymizer - replaces PII with numbered placeholders * and supports optional restoration */ export declare class Pseudonymizer { private counters; /** * Pseudonymize text by replacing PII with placeholders * Returns the modified text and a mapping for restoration */ pseudonymize(text: string, detections: PIIDetection[]): { text: string; mappings: Map; }; /** * Restore placeholders in text with original values */ restore(text: string, mappings: Map): string; /** * Generate a placeholder for a PII type */ private generatePlaceholder; /** * Escape special regex characters in a string */ private escapeRegex; /** * Reset counters (for testing) */ reset(): void; } //# sourceMappingURL=pseudonymizer.d.ts.map