/** * Removing secrets from errors: a provider that refuses a key often says which one it refused, and * an error travels to logs, audit events, traces, and health reports. */ /** What a removed secret reads as. */ export declare const REDACTED = "[redacted]"; /** * Replaces every occurrence of each secret in an error's text, in place: its message, its stack, and * every string field of it, its cause, and the objects they hold. Secrets shorter than four * characters are left, since replacing them would garble ordinary text. Returns the same error. */ export declare function scrubSecrets(error: E, secrets: Iterable): E;