import { Api, HttpMethod, ApiResponse } from "../../domain/models/Api"; /** * Implement API using built in fetch */ export declare class FetchApi implements Api { request(method: HttpMethod, urlStr: string, urlParameters?: Map, httpHeaders?: Map, body?: string | Record): Promise>; /** * should `body` be included in the request * * @param method * @returns {boolean} */ private includeBody; /** * attempt to convert response to JSON * or return as string * * @param response * @returns {string | {}} */ private parseResponse; }