/// import got from 'got'; import { Url } from 'url'; export interface Options { hooks?: any; hostType?: string; search?: string; token?: string; useCache?: boolean; } export declare type GotJSONOptions = Options & got.GotJSONOptions; export declare type GotStreamOptions = Options & got.GotOptions; export declare type GotUrl = string | Url; export interface GotFn { (url: GotUrl, options?: GotJSONOptions): got.GotPromise; (url: GotUrl, options?: Options & got.GotBodyOptions): got.GotPromise; } export interface Got extends GotFn, Record<'get' | 'post' | 'put' | 'patch' | 'head' | 'delete', GotFn> { stream(url: GotUrl, options?: GotStreamOptions): NodeJS.ReadableStream; }