import { RequestOptionsFactory } from '@wix/sdk-types'; /** Creates a collection. */ export declare function createCollection(payload: object): RequestOptionsFactory; /** Retrieves a collection. */ export declare function getCollection(payload: object): RequestOptionsFactory; /** Retrieves a list all collections in a portfolio. */ export declare function listCollections(payload: object): RequestOptionsFactory; /** Updates a collection. */ export declare function updateCollection(payload: object): RequestOptionsFactory; /** Deletes a collection. */ export declare function deleteCollection(payload: object): RequestOptionsFactory; /** * Creates a query to retrieve a list of collections. * * The `queryCollections()` method builds a query to retrieve a list of collections and returns a `CollectionsQueryBuilder` object. * * The returned object contains the query definition, which is used to run the query using the [`find()`](https://dev.wix.com/docs/sdk/backend-modules/portfolio/collections/collections-query-builder/find) method. * * You can refine the query by chaining `CollectionsQueryBuilder` methods onto the query. `CollectionsQueryBuilder` methods enable you to filter, sort, and control the results that `queryCollections()` returns. * * `queryCollections()` runs with the following `CollectionsQueryBuilder` defaults which you can override: * * + [`limit(100)`](https://dev.wix.com/docs/sdk/backend-modules/portfolio/collections/collections-query-builder/limit) * + [`ascending('_id')`](https://dev.wix.com/docs/sdk/backend-modules/portfolio/collections/collections-query-builder/ascending) * * The following `CollectionsQueryBuilder` methods are supported for `queryCollections()`. For a full description of the operations object, see the object returned for the [`items`](https://dev.wix.com/docs/sdk/backend-modules/portfolio/collections/collections-query-result/items) property in `CollectionsQueryResult`. */ export declare function queryCollections(payload: object): RequestOptionsFactory;