import { GotInstance, GotJSONOptions } from "got"; import { Agent as IAgent, HttpRequest, HttpResponse } from "@ideal-postcodes/core-interface"; interface GotHeaders { [key: string]: string | string[] | undefined; } interface StringMap { [key: string]: string; } /** * GotConfig * * An optional configuration object which is passed to the underlying got http * client */ export declare type GotConfig = Partial; export declare const toHeader: (gotHeaders: GotHeaders) => StringMap; export declare class Agent implements IAgent { got: GotInstance; gotConfig: GotConfig; constructor(gotConfig?: GotConfig); private requestWithBody; private request; http(httpRequest: HttpRequest): Promise; } export {};