export interface XhrRecord { readonly url: string; readonly method: string; readonly status: number; readonly startedAt: number; readonly durationMs: number; readonly requestBody?: unknown; readonly responseBody?: unknown; readonly requestHeaders?: Record; readonly responseHeaders?: Record; readonly statusText?: string; readonly error?: string; } export interface XhrRequestMetadata { readonly url: string; readonly method: string; readonly headers?: Record; readonly body?: unknown; } export interface XhrInvocationCapture { shouldSuppress: () => boolean; } export interface XhrInvocationContext { onRequest: (request: XhrRequestMetadata) => XhrInvocationCapture | undefined; } export declare function withXhrInvocationContext(context: XhrInvocationContext, invoke: () => T): T; export declare function acquireCollector(owner: symbol, emit: (record: XhrRecord) => void): () => void; export declare function acquireRewriter(owner: symbol, rewrite: (url: string) => string): () => void; //# sourceMappingURL=xhrService.d.ts.map