export interface HttpExchangeFixture { readonly request: { readonly method: string; readonly url: string; readonly headers: Record; readonly body: string | null; }; readonly response: { readonly status: number; readonly statusText?: string; readonly headers: Record; readonly body: string; }; readonly meta?: Record; } export interface CapturedRequest { method: string; url: string; headers: Record; body: string | null; } export type FetchLike = (input: string | URL | Request, init?: RequestInit) => Promise;