import { RequestOptionsFactory } from '@wix/sdk-types'; /** * Retrieves a label with a specified name, or creates one if it doesn't exist. * * Successful calls to this method always return a label, * which can be specified in subsequent calls. * * For example, in the Contacts API, Label Contact and Unlabel Contact * calls will fail if you include a non-existent label. * To ensure successful calls, you can call this method first, * and then use the response in the Label Contact and Unlabel Contact calls. * * To find an existing label without potentially creating a new one, call * Get Label or Query Labels. */ export declare function findOrCreateLabel(payload: object): RequestOptionsFactory; /** Retrieves a label by the specified label key. */ export declare function getLabel(payload: object): RequestOptionsFactory; /** Renames a label. */ export declare function updateLabel(payload: object): RequestOptionsFactory; /** Deletes the specified label from a site and removes it from the contacts it applies to. */ export declare function deleteLabel(payload: object): RequestOptionsFactory; /** * Creates a query to retrieve a list of labels. * * The `queryLabels()` method builds a query to retrieve a list of labels and returns a `LabelsQueryBuilder` object. * * The returned object contains the query definition, which is used to call the query using the `find()` method. * * You can refine the query by chaining `LabelsQueryBuilder` methods onto the query. `LabelsQueryBuilder` methods enable you to filter, sort, and control the response that `queryLabels()` returns. * * `queryLabels()` is called with the following `LabelsQueryBuilder` defaults, which you can override: * - `skip(0)` * - `limit(50)` * - `descending('_createdDate')` * * The following `LabelsQueryBuilder` methods are supported for `queryLabels()`. For a full description of the `Labels` object, see the object returned for the `items` field in `LabelsQueryResult`. * * */ export declare function queryLabels(payload: object): RequestOptionsFactory;