/** The longest line the emitter writes; the rest is cut and marked. */ export declare const MAX_LINE_BYTES: number; export type RedactionPattern = "bearer" | "pem" | "jws" | "header" | "assertion" | "secret"; export interface Redaction { readonly line: string; readonly patterns: readonly RedactionPattern[]; } /** * The last line of defence before a line leaves the process. It holds no * secret value: only the SHA-256 digests of the current secrets, so a whole * value that leaks is recognised by hashing the line's tokens, never by * searching for the value itself. Shape patterns catch what a digest cannot: * a bearer credential, a PEM block, a compact JWS, the configured downstream * header, an OAuth client assertion. Every pattern is a single linear scan. */ export declare class Redactor { /** The digests of every current secret, `sha256:`, read at each call so rotation is followed. */ private readonly digests; /** Header names whose values are credentials, lower case. */ private readonly credentialHeaders; constructor( /** The digests of every current secret, `sha256:`, read at each call so rotation is followed. */ digests: () => Iterable, /** Header names whose values are credentials, lower case. */ credentialHeaders?: () => Iterable); redact(input: string): Redaction; /** `
: ` or `"
":""`, case-insensitively, value redacted. */ private static redactHeader; /** Control characters out, length bounded, so a line is one line. */ private static bound; } //# sourceMappingURL=Redactor.d.ts.map