/** * JS fetch/XHR network capture — the cross-platform FALLBACK behind `captureJsNetwork: true`. * The default path is native (OkHttp interceptor on Android, URLProtocol on iOS), which sees the * same requests without patching globals. Mirrors the native NetworkInterceptor's redaction and * payload rules. */ export interface NetworkEventPayload { method: string; url: string; statusCode: number; durationMs: number; requestBytes?: number; responseBytes?: number; errorMessage?: string; requestHeaders?: Record; responseHeaders?: Record; requestPayload?: string; responsePayload?: string; } export type NetworkSink = (event: NetworkEventPayload) => void; export declare function isReadableContentType(contentType: string | null | undefined): boolean; export declare function redactHeader(name: string, value: string): string; /** Headers | [string, string][] | Record → lowercased, redacted record. */ export declare function headersToRecord(headers: unknown): Record | undefined; /** "name: value\r\n…" (XHR getAllResponseHeaders) → lowercased, redacted record. */ export declare function rawHeadersToRecord(raw: string | null | undefined): Record | undefined; export declare function installNetworkMonitor(sink: NetworkSink, g?: any): void;