import { LoggingData, RedactConfig } from "../types.mjs"; //#region ../@warlock.js/logger/src/redact/redact.d.ts /** * Produce a new `LoggingData` with every path in `config.paths` replaced * by `config.censor`. The original entry is never mutated — channels and * other call sites can hold references to the input safely. * * No-op (returns the input by reference) when `config` is `undefined` or * its `paths` array is empty, so the fast path stays fast. */ declare function applyRedact(data: LoggingData, config: RedactConfig | undefined): LoggingData; /** * Combine two redact configs into one effective config. Used to merge a * channel's additive paths on top of the logger-wide floor. * * - `paths` are concatenated; duplicates are kept (the matcher tolerates * them, and de-duping cross-config would mask a developer typo). * - `censor` from the channel wins; falls back to the logger's; falls back * to the default `"[REDACTED]"`. */ declare function mergeRedact(base: RedactConfig | undefined, extra: RedactConfig | undefined): RedactConfig | undefined; //#endregion export { applyRedact, mergeRedact }; //# sourceMappingURL=redact.d.mts.map