1 | import { Gaxios, GaxiosError, GaxiosOptions, GaxiosPromise, GaxiosResponse } from 'gaxios';
|
2 | export interface Transporter {
|
3 | defaults?: GaxiosOptions;
|
4 | request<T>(opts: GaxiosOptions): GaxiosPromise<T>;
|
5 | }
|
6 | export interface BodyResponseCallback<T> {
|
7 | (err: Error | null, res?: GaxiosResponse<T> | null): void;
|
8 | }
|
9 | export interface RequestError extends GaxiosError {
|
10 | errors: Error[];
|
11 | }
|
12 | export declare class DefaultTransporter implements Transporter {
|
13 | |
14 |
|
15 |
|
16 | static readonly USER_AGENT: string;
|
17 | |
18 |
|
19 |
|
20 | instance: Gaxios;
|
21 | |
22 |
|
23 |
|
24 |
|
25 |
|
26 | configure(opts?: GaxiosOptions): GaxiosOptions;
|
27 | |
28 |
|
29 |
|
30 |
|
31 |
|
32 |
|
33 | request<T>(opts: GaxiosOptions): GaxiosPromise<T>;
|
34 | get defaults(): GaxiosOptions;
|
35 | set defaults(opts: GaxiosOptions);
|
36 | |
37 |
|
38 |
|
39 | private processError;
|
40 | }
|