import { GotError } from 'got'; import { GotJSONOptions } from '../../util/got'; import { GotApi } from '../common'; export declare const getHostType: () => string; export declare const getBaseUrl: () => string; declare type GotRequestError = GotError & { body: { message?: string; errors?: E[]; }; headers?: Record; }; declare type GotRequestOptions = GotJSONOptions & { token?: string; }; export declare function dispatchError(err: GotRequestError, path: string, opts: GotRequestOptions): never; export declare const api: GotApi; export default api;