1 | import type { CreateHttpClientParams } from 'contentful-sdk-core';
|
2 | import type { Adapter, MakeRequestOptions } from '../../common-types';
|
3 | export type RestAdapterParams = CreateHttpClientParams & {
|
4 | |
5 |
|
6 |
|
7 | accessToken: CreateHttpClientParams['accessToken'];
|
8 | |
9 |
|
10 |
|
11 |
|
12 | host?: string;
|
13 | |
14 |
|
15 |
|
16 |
|
17 | hostUpload?: string;
|
18 | userAgent?: string | undefined;
|
19 | };
|
20 | export declare class RestAdapter implements Adapter {
|
21 | private readonly params;
|
22 | private readonly axiosInstance;
|
23 | constructor(params: RestAdapterParams);
|
24 | makeRequest<R>({ entityType, action: actionInput, params, payload, headers, userAgent, }: MakeRequestOptions): Promise<R>;
|
25 | }
|