import { FetchOptions } from '../models/FetchOptions'; /** * This is our built-in request function. It does a few things by default * (unless told otherwise): * - Makes CORS requests * - Sets accept header to "application/json" * - Handles errors * - If the response is json return the json object * - If the response is text return the result text * - Otherwise return the response object on which we call stuff like `.blob()` */ export declare function request(url: string | Request, requestOptions?: FetchOptions): Promise;