import { RequestOptionsFactory } from '@wix/sdk-types'; import { CreateDataCollectionRequest, CreateDataCollectionResponse, DeleteDataCollectionRequest, DeleteDataCollectionResponse, GetDataCollectionRequest, GetDataCollectionResponse, ListDataCollectionsRequest, ListDataCollectionsResponse, UpdateDataCollectionRequest, UpdateDataCollectionResponse } from './data-v2-data-collection.types'; /** * Creates a new data collection. * * The request body must include an ID, details for at least 1 field, and a permissions object. If any of these are missing, the collection isn't created. */ export declare function createDataCollection(payload: CreateDataCollectionRequest): RequestOptionsFactory; /** Retrieves a data collection by ID. */ export declare function getDataCollection(payload: GetDataCollectionRequest): RequestOptionsFactory; /** * Retrieves a list of all data collections associated with the site. * * By default, the list is ordered by ID in ascending order. */ export declare function listDataCollections(payload: ListDataCollectionsRequest): RequestOptionsFactory; /** * Updates a data collection. * * A collection ID, revision number, permissions, and at least 1 field must be provided within the `collection` body parameter. * If a collection with that ID exists, and if its current `revision` number matches the one provided, it is updated. * Otherwise, the request fails. * * When a collection is updated, its `updatedDate` property is changed to the current date and its `revision` property is incremented. * * > **Note:** * > After a collection is updated, it only contains the properties included in the Update Data Collection request. If the existing collection has properties with values and those properties * > aren't included in the updated collection details, their values are lost. */ export declare function updateDataCollection(payload: UpdateDataCollectionRequest): RequestOptionsFactory; /** * Deletes a data collection. * * > **Note:** * > Once a collection is deleted, it can't be restored. */ export declare function deleteDataCollection(payload: DeleteDataCollectionRequest): RequestOptionsFactory;