import { RequestOptionsFactory } from '@wix/sdk-types'; /** Creates a new resource type. */ export declare function createResourceType(payload: object): RequestOptionsFactory; /** Retrieves a resource type by ID. */ export declare function getResourceType(payload: object): RequestOptionsFactory; /** * Updates a resource type. * * Each time the resource type is updated, `revision` increments by 1. You must include current revision of the resource type when updating it. * This ensures you're working with the latest service information and prevents unintended overwrites. */ export declare function updateResourceType(payload: object): RequestOptionsFactory; /** * Deletes a resource type. * * Deleting a resource type will automatically delete all resources of this type. */ export declare function deleteResourceType(payload: object): RequestOptionsFactory; /** * Creates a query to retrieve a list of resource types. * * The `queryResourceTypes()` function builds a query to retrieve a list of resource types and returns a `ResourceTypesQueryBuilder` object. * * The returned object contains the query definition, which is typically used to run the query using the [find()](https://dev.wix.com/docs/sdk/backend-modules/bookings/resource-types/resource-types-query-builder/find) function. * * You can refine the query by chaining `ResourceTypesQueryBuilder` functions onto the query. `ResourceTypesQueryBuilder` functions enable you to sort, filter, and control the results that `queryResourceTypes()` returns. * * `queryResourceTypes()` runs with the following `ResourceTypesQueryBuilder` default that you can override: * * + `limit` is `50`. * + Sorted by `id` in ascending order. * * The functions that are chained to `queryResourceTypes()` are applied in the order they are called. * * The following `ResourceTypesQueryBuilder` functions are supported for the `queryResourceTypes()` function. For a full description of the resource object, see the object returned for the [items](https://dev.wix.com/docs/sdk/backend-modules/bookings/resource-types/resource-types-query-result/items) property in `ResourceTypesQueryResult`. */ export declare function queryResourceTypes(payload: object): RequestOptionsFactory; /** * Counts resource types according to given criteria. * * For field support for filters, see [Resource types: Filtering and Sorting](https://dev.wix.com/docs/rest/business-solutions/bookings/staff-members-and-resources/resource-type-v2/filtering-and-sorting). * Use [WQL filter](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section) to define the criteria. */ export declare function countResourceTypes(payload: object): RequestOptionsFactory;