import type { Link, DefaultElements } from '../common-types'; import type { MakeRequest } from '../common-types'; import createFunctionApi from '../create-function-api'; export type FunctionProps = { sys: { id: string; type: 'Function'; createdBy: Link<'User'>; createdAt: string; updatedBy: Link<'User'>; updatedAt: string; organization: Link<'Organization'>; appDefinition: Link<'AppDefinition'>; }; name: string; description: string; path: string; accepts: string[]; allowNetworks?: string[]; }; export interface Function extends FunctionProps, DefaultElements { } /** * @private * @param makeRequest - (real) function to make requests via an adapter * @param data - raw contentful-Function data * @return Wrapped Function data */ export declare function wrapFunction(makeRequest: MakeRequest, data: FunctionProps): FunctionProps & ReturnType; /** * @private * @param makeRequest - real) function to make requests via an adapter * @param data - raw contentful-function data * @return Wrapped App Function collection data */ export declare const wrapFunctionCollection: (makeRequest: MakeRequest, data: import("../common-types").CollectionProp) => import("../common-types").Collection>; getFunction(functionId: string): Promise; getManyFunctionsForEnvironment(spaceId: string, environmentId: string, appInstallationId: string): Promise>; }, FunctionProps>;