import type { Except } from 'type-fest'; import type { BasicMetaSysProps, DefaultElements, MakeRequest, SysLink } from '../common-types'; type AppSignedRequestSys = Except & { appDefinition: SysLink; space: SysLink; environment: SysLink; }; export type AppSignedRequestProps = { /** * System metadata */ sys: AppSignedRequestSys; /** new headers to be included in the request */ additionalHeaders: { 'x-contentful-signature': string; 'x-contentful-signed-headers': string; 'x-contentful-timestamp': string; 'x-contentful-space-id': string; 'x-contentful-environment-id': string; 'x-contentful-user-id': string; }; }; export type CreateAppSignedRequestProps = { /** the request method */ method: 'GET' | 'PUT' | 'POST' | 'DELETE' | 'PATCH' | 'HEAD'; /** the path of the request method */ path: string; /** optional stringified body of the request */ body?: string; /** optional headers of the request */ headers?: Record; }; export interface AppSignedRequest extends AppSignedRequestProps, DefaultElements { } /** * @private * @param http - HTTP client instance * @param data - Raw AppSignedRequest data * @return Wrapped AppSignedRequest data */ export declare function wrapAppSignedRequest(_makeRequest: MakeRequest, data: AppSignedRequestProps): AppSignedRequest; export {};