import { HttpRequest } from './httpRequest'; /** An interface for the result of an API call. */ export interface ApiResponse { /** Original request that resulted in this response. */ request: HttpRequest; /** Response status code */ statusCode: number; /** Response headers */ headers: Record; /** Response data */ result: T; /** Original body from the response */ body: string | Blob | NodeJS.ReadableStream; }