1 | import { CreateHttpClientParams } from 'contentful-sdk-core';
|
2 | import { Adapter, MakeRequestOptions } from '../../common-types';
|
3 | export declare 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 | };
|
19 | export declare class RestAdapter implements Adapter {
|
20 | private readonly params;
|
21 | constructor(params: RestAdapterParams);
|
22 | makeRequest<R>({ entityType, action: actionInput, params, payload, headers, userAgent, }: MakeRequestOptions): Promise<R>;
|
23 | }
|