/** * Redaction for error-correlated network request/response context. * * The SDK's main `redact.ts` only handles rrweb DOM-field masking, so it can't * scrub request/response payloads. This module is a small, pure, dependency-free * helper that redacts well-known sensitive keys/headers and truncates bodies so * the opt-in `requestContext` on an error report never leaks secrets or bloats * the payload. Covered by __tests__/redact-network.test.ts. */ /** * Redact a request/response body. JSON bodies get their sensitive keys replaced * with [REDACTED]; non-JSON bodies are passed through (truncated). Always * truncated to `maxLen`. */ export declare function redactBodyString(body: string, maxLen?: number): string; /** Redact sensitive header values (Authorization, Cookie, etc.). */ export declare function redactHeaders(headers: Record): Record; //# sourceMappingURL=redact-network.d.ts.map