import { DataFormatTypes, RequestMethods, ResponseType } from 'src/models'; /** * Facilitates custom request headers for use in the * TransportClient */ export interface RequestHeaders { [key: string]: string | undefined; accept: DataFormatTypes; 'content-type'?: string; } /** * The expected shape for the `TransportClient.request()` method */ export interface Request { url: string; method: RequestMethods; params?: string | URLSearchParams; headers?: RequestHeaders; data?: string | File | FormData; timeout?: number | Promise; responseType?: ResponseType; } export interface RequestWithBlobResponse extends Request { responseType: ResponseType.blob; }