import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types'; import { _Function, UpdateFunction, BulkUpdateFunctionTagsOptions, BulkUpdateFunctionTagsResponse, BulkUpdateFunctionTagsApplicationErrors, BulkUpdateFunctionTagsByFilterOptions, BulkUpdateFunctionTagsByFilterResponse, BulkUpdateFunctionTagsByFilterApplicationErrors, FunctionCreatedEnvelope, FunctionDeletedEnvelope, FunctionTagsModifiedEnvelope, FunctionUpdatedEnvelope, FunctionsQueryBuilder, _FunctionQuery, typedQueryFunctions } from './index.typings.js'; export { AccountInfo, AccountInfoMetadata, ActionEvent, ActivationStatus, ActivationStatusWithLiterals, ApplicationError, BaseEventMetadata, BulkActionMetadata, BulkUpdateFunctionTagsByFilterRequest, BulkUpdateFunctionTagsRequest, BulkUpdateFunctionTagsResult, CommonQueryWithEntityContext, CreateFunctionRequest, CreateFunctionResponse, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, DeleteFunctionRequest, DeleteFunctionResponse, DomainEvent, DomainEventBodyOneOf, DraftDiscarded, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, FieldAndCount, FunctionsQueryResult, GetFunctionRequest, GetFunctionResponse, IdentificationData, IdentificationDataIdOneOf, ItemMetadata, ListValuesByFieldRequest, ListValuesByFieldResponse, MessageEnvelope, QueryFunctionsRequest, QueryFunctionsResponse, RestoreInfo, SortOrder, SortOrderWithLiterals, Sorting, TagList, Tags, TagsModified, UpdateFunctionExternalIdsRequest, UpdateFunctionExternalIdsResponse, UpdateFunctionRequest, UpdateFunctionResponse, WebhookIdentityType, WebhookIdentityTypeWithLiterals, _FunctionQuerySpec, utils } from './index.typings.js'; declare function createFunction$1(httpClient: HttpClient): CreateFunctionSignature; interface CreateFunctionSignature { /** * Creates a function with the specified configuration. After creation, you'll need to attach automation logic using the Function Methods API and configure any required service plugin settings before the function can be activated. * * This isn't the recommended way to create a function. Learn more about [function creation](https://dev.wix.com/docs/api-reference/business-management/functions/about-function-creation-and-activation#quick-creation-and-configuration). * @param - Function to create. * @returns The created function. */ (_function?: _Function): Promise>; } declare function getFunction$1(httpClient: HttpClient): GetFunctionSignature; interface GetFunctionSignature { /** * Retrieves a function. * @param - ID of the function to retrieve. * @returns The retrieved function. */ (functionId: string): Promise>; } declare function updateFunction$1(httpClient: HttpClient): UpdateFunctionSignature; interface UpdateFunctionSignature { /** * Updates a function. * * Each time the function is updated, * `revision` increments by 1. * The existing `revision` must be passed when updating the function. * This ensures you're working with the latest version of the function * and prevents unintended overwrites. * @param - Function ID. * @returns Updated function. */ (_id: string, _function?: UpdateFunction): Promise>; } declare function deleteFunction$1(httpClient: HttpClient): DeleteFunctionSignature; interface DeleteFunctionSignature { /** * Deletes a function. * * Deleting a function permanently removes it from the Function List * in the site's dashboard. * @param - ID of the function to delete. */ (functionId: string): Promise; } declare function bulkUpdateFunctionTags$1(httpClient: HttpClient): BulkUpdateFunctionTagsSignature; interface BulkUpdateFunctionTagsSignature { /** * Synchronously update tags on multiple functions. * A tag that appears both the list to assign and the list to unassign tags, will be assigned. * @param - IDs of functions to update tags for. */ (ids: string[], options?: NonNullablePaths): Promise & { __applicationErrorsType?: BulkUpdateFunctionTagsApplicationErrors; }>; } declare function bulkUpdateFunctionTagsByFilter$1(httpClient: HttpClient): BulkUpdateFunctionTagsByFilterSignature; interface BulkUpdateFunctionTagsByFilterSignature { /** * Asynchronously update tags on multiple functions. * An empty filter updates all functions. * A tag that appears both the list to assign and the list to unassign tags, will be assigned. * @param - Filter. */ (filter: Record, options?: NonNullablePaths): Promise & { __applicationErrorsType?: BulkUpdateFunctionTagsByFilterApplicationErrors; }>; } declare const onFunctionCreated$1: EventDefinition; declare const onFunctionDeleted$1: EventDefinition; declare const onFunctionTagsModified$1: EventDefinition; declare const onFunctionUpdated$1: EventDefinition; declare function customQueryFunctions(httpClient: HttpClient): { (): FunctionsQueryBuilder; (query: _FunctionQuery): ReturnType; }; declare const createFunction: MaybeContext & typeof createFunction$1>; declare const getFunction: MaybeContext & typeof getFunction$1>; declare const updateFunction: MaybeContext & typeof updateFunction$1>; declare const deleteFunction: MaybeContext & typeof deleteFunction$1>; declare const bulkUpdateFunctionTags: MaybeContext & typeof bulkUpdateFunctionTags$1>; declare const bulkUpdateFunctionTagsByFilter: MaybeContext & typeof bulkUpdateFunctionTagsByFilter$1>; declare const queryFunctions: MaybeContext & typeof customQueryFunctions>; /** * Triggered when a function is created. */ declare const onFunctionCreated: BuildEventDefinition & typeof onFunctionCreated$1; /** * Triggered when a function is deleted. */ declare const onFunctionDeleted: BuildEventDefinition & typeof onFunctionDeleted$1; /** * Triggered when tags are modified. */ declare const onFunctionTagsModified: BuildEventDefinition & typeof onFunctionTagsModified$1; /** * Triggered when a function is updated. */ declare const onFunctionUpdated: BuildEventDefinition & typeof onFunctionUpdated$1; export { BulkUpdateFunctionTagsApplicationErrors, BulkUpdateFunctionTagsByFilterApplicationErrors, BulkUpdateFunctionTagsByFilterOptions, BulkUpdateFunctionTagsByFilterResponse, BulkUpdateFunctionTagsOptions, BulkUpdateFunctionTagsResponse, FunctionCreatedEnvelope, FunctionDeletedEnvelope, FunctionTagsModifiedEnvelope, FunctionUpdatedEnvelope, FunctionsQueryBuilder, UpdateFunction, _Function, _FunctionQuery, bulkUpdateFunctionTags, bulkUpdateFunctionTagsByFilter, createFunction, deleteFunction, getFunction, onFunctionCreated, onFunctionDeleted, onFunctionTagsModified, onFunctionUpdated, queryFunctions, updateFunction };