import { Request } from './request'; import { Response } from './response'; export declare type Types = 'text' | 'document' | 'blob' | 'arraybuffer' | 'json'; export interface Options { type?: Types; withCredentials?: boolean; overrideMimeType?: string; } export declare function createTransport(options: Options): { use: ((request: Request, next: () => Promise) => Promise)[]; abort: (request: Request) => void; open(request: Request): Promise; };