//#region src/core/redact.d.ts /** * Two redaction layers, both zero-dependency: * * 1. **Field-path redaction** ({@link REDACTED_PATHS} / {@link redactOptions}) — * Pino's `redact` option. Strips known-sensitive keys from every log line in * Pino's serialisation layer, before any transport sees it. * 2. **Token-shape scrubbing** ({@link redact} / {@link redactObject}) — a * regex over the serialised string that matches a token shape *anywhere*, * even in a value the caller controls. Used by the Sentry `beforeSend` hook * and the analytics `capture()` path. */ /** * Sensitive field paths stripped from every log line. Paths use Pino's * redaction syntax: dotted access, `[*]` wildcards for arrays, and * bracket-quoted keys for names that are not valid identifiers. * * @see https://getpino.io/#/docs/redaction */ declare const REDACTED_PATHS: readonly string[]; /** Replacement string Pino writes in place of a redacted value. */ declare const REDACT_CENSOR = "[Redacted]"; /** Ready-to-use Pino `redact` option. */ declare const redactOptions: { readonly paths: readonly string[]; readonly censor: "[Redacted]"; }; /** Replace token-shaped substrings in a string with `[REDACTED]`. */ declare function redact(raw: string): string; /** Deep-scrub every string in an object by round-tripping through {@link redact}. */ declare function redactObject(value: T): T; //#endregion export { redactOptions as a, redactObject as i, REDACT_CENSOR as n, redact as r, REDACTED_PATHS as t };