/** * File path username sanitizer. * * Replaces usernames in file paths with a placeholder before forwarding upstream, * stores the mapping, and can reverse-replace in responses. * * Supported patterns: * - /home//... (Linux) * - /Users//... (macOS) * - C:\Users\\... (Windows) */ /** * Clear all path mappings (for testing). */ export declare function clearPathMappings(): void; /** * Replace usernames in file paths with placeholder. * Works on any JSON-serializable body. Mutates the body in place. */ export declare function sanitizePaths(body: unknown, placeholder: string, requestId: string): void; /** * Reverse-replace placeholders with real usernames in response body. * Clears the mapping after use. Mutates body in place. */ export declare function restorePaths(body: unknown, requestId: string): void; /** * Sanitize a single SSE chunk string by reverse-replacing placeholders. * Used in streaming responses. Does NOT clear the mapping (stream has multiple chunks). */ export declare function sanitizeSSEChunk(sseLine: string, requestId: string): string; //# sourceMappingURL=sanitizer.d.ts.map