/** Minimum length a value must have before it is worth redacting. */ export declare const MIN_REDACTABLE_LENGTH = 4; export declare const REDACTION_PLACEHOLDER = "[REDACTED_SECRET]"; /** * Replace every occurrence of each secret value in `text` with a placeholder. * Short values (< MIN_REDACTABLE_LENGTH) are ignored to avoid mangling output * with overly broad substitutions. Longest values are replaced first so that a * secret which is a substring of another is not partially exposed. */ export declare function redactSecrets(text: string, values: Iterable): string; /** * Collect the concrete secret values that should be redacted, given the set of * granted secret keys and an environment map that may hold their values. * Only keys present in `secretKeys` contribute, so non-secret env is never * treated as redactable material. */ export declare function collectRedactionValues(secretKeys: Iterable, env: Record | undefined): string[]; //# sourceMappingURL=redaction.d.ts.map