/** * Credential redaction shared by the logger and the error taxonomy. * * Both write text a consumer will see — one to the console, one into * `error.message` — so both need the same rules. Keeping them here stops the * two drifting apart and leaving one of the paths leaking. */ export declare const REDACTED = "[REDACTED]"; export declare const isSensitiveKey: (key: unknown) => key is string; /** * Strips the credentials out of a URL, keeping the origin so the failing host * is still identifiable. An RPC URL routinely carries an API key in its path or * query, which is why anything past the origin goes. */ export declare function sanitizeUrl(value: string): string; /** Redacts every credential shape recognised in a run of text. */ export declare const redactSensitiveText: (value: string) => string;