/** * Sensitive-data redaction helpers used by collectors before storing * entries. Redaction happens at COLLECTION time, not display time, so * sensitive values never reach the storage backend (memory, sqlite, * future Postgres, etc.) — they can't leak via export, share-link, or * a future MCP integration. */ /** * Returns a copy of `headers` with values for any header in `hideList` * (case-insensitive) replaced with `[REDACTED]`. Header keys are * preserved as written by the runtime so the dashboard still shows * "Authorization: [REDACTED]" rather than dropping the row entirely. */ export declare function redactHeaders(headers: Record | undefined, hideList: string[]): Record | undefined; /** * Walks an arbitrary value and returns a copy with any object key in * `hideList` (case-insensitive) replaced with `[REDACTED]`. Recurses * into objects and arrays. Primitives, null, undefined are returned * unchanged. Dates and other built-ins pass through. * * Used for request bodies — `{ password: "abc", user: { token: "xyz" }}` * becomes `{ password: "[REDACTED]", user: { token: "[REDACTED]" }}`. */ export declare function redactFields(value: unknown, hideList: string[]): unknown; //# sourceMappingURL=redact.d.ts.map