1 | import { AxiosInstance } from "axios";
|
2 | import { Agent as IAgent, HttpRequest, HttpResponse } from "@ideal-postcodes/core-interface";
|
3 | interface GotHeaders {
|
4 | [key: string]: string | string[] | undefined;
|
5 | }
|
6 |
|
7 |
|
8 |
|
9 | interface ToHeader {
|
10 | (gotHeaders: GotHeaders): Record<string, string>;
|
11 | }
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 | export declare const toHeader: ToHeader;
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 | export declare class Agent implements IAgent {
|
24 | Axios: AxiosInstance;
|
25 | constructor();
|
26 | private requestWithBody;
|
27 | private request;
|
28 | http(httpRequest: HttpRequest): Promise<HttpResponse>;
|
29 | }
|
30 | export {};
|