import type { BasicMetaSysProps, DefaultElements, MakeRequest, SysLink } from '../common-types'; export type ResourceProviderProps = { /** * System metadata */ sys: Omit & { organization: SysLink; appDefinition: SysLink; }; /** * Resource Provider type, value is 'function' */ type: 'function'; /** * Link to a Contentful function */ function: SysLink; }; export type UpsertResourceProviderProps = Omit & { sys: { id: string; }; }; export interface ResourceProvider extends ResourceProviderProps, DefaultElements { upsert(): Promise; delete(): Promise; } /** * @private * @param makeRequest - function to make requests via an adapter * @param data - Raw Resource Provider data * @return Wrapped Resource Provider data */ export declare function wrapResourceProvider(makeRequest: MakeRequest, data: ResourceProviderProps): ResourceProvider;