import { RequestOptionsFactory } from '@wix/sdk-types'; /** * Creates a new task. * * All fields in the `task` object are optional. If you don't pass any fields in the `task` object, the function returns a task with the following core properties: * - `_id` * - `_createdDate` * - `_updatedDate` * - `status` * - `source` * - `revision` * */ export declare function createTask(payload: object): RequestOptionsFactory; /** Retrieves a task by ID. */ export declare function getTask(payload: object): RequestOptionsFactory; /** * Updates a task. * * Each time the task is updated, `revision` increments by 1. * The existing `revision` must be included when updating the task. * This ensures you're working with the latest task * and prevents unintended overwrites. */ export declare function updateTask(payload: object): RequestOptionsFactory; /** Deletes a task by ID. */ export declare function deleteTask(payload: object): RequestOptionsFactory; /** * Creates a query to retrieve a list of tasks. * * The `queryTasks()` function builds a query to retrieve a list of tasks and returns a `TasksQueryBuilder` object. * * The returned object contains the query definition which is typically used to run the query using the `find()` function. You can refine the query by chaining `TasksQueryBuilder` functions onto the query. `TasksQueryBuilder` functions enable you to sort, filter, and control the results that `queryTasks()` returns. * * `queryTasks()` runs with these `TasksQueryBuilder` defaults, which you can override: * - `limit(50)` * - `descending('_createdDate')` * * The functions that are chained to `queryTasks()` are applied in the order they are called. For example, if you apply `ascending('_createdDate')` and then `descending('_updatedDate')`, the results are sorted first by the created date and then, if there are multiple results with the same date, the items are sorted by the updated date. * * The following `TasksQueryBuilder` functions are supported for `queryTasks()`. For a full description of the `task` object, see the object returned for the `items` property in `TasksQueryResult`. */ export declare function queryTasks(payload: object): RequestOptionsFactory; /** * Counts the number of tasks. * * * This method returns the count of all tasks regardless of their `status`. * * Optionally, you can specify a filter to count only tasks that meet certain criteria. */ export declare function countTasks(payload: object): RequestOptionsFactory; /** * Moves a task specified by ID to be placed after another task in the task display. * * You can reposition a task to be first in the display by omitting `beforeTaskId`. */ export declare function moveTaskAfter(payload: object): RequestOptionsFactory;