/** * Path redaction: home dir, username, generic `/home`/`/Users`/`C:\Users` * prefixes (POSIX and Windows), and a generic absolute-path-to-basename * collapse. Standalone entry point for callers that only need paths gone * (e.g. sanitizeError() — an internal error message, not published data). */ export declare function redactPaths(text: string): string; /** IPv4/IPv6, email, SSN, phone, and hostname redaction. */ export declare function redactPii(text: string): string; /** API keys, tokens, passwords, private keys, and known provider key formats. */ export declare function redactSecrets(text: string): string; /** * Strip obvious secrets/PII/paths before anything gets sent somewhere it * shouldn't (a public GitHub issue, an exported pattern file). Not a * substitute for careful callers — this is a last-resort net. * * Order matters: home/user/generic-prefix replacement must run before the * generic absolute-path collapse (so a username-bearing path collapses to * ``'s neighborhood correctly), and secret-pattern stripping runs * before that path collapse too (a secret string that happens to look * path-like should still hit the secret patterns first). */ export declare function redact(text: string): string; //# sourceMappingURL=redaction.d.ts.map