import type { BasicMetaSysProps, DefaultElements, GetEntryParams, GetTaskParams, Link, MakeRequest, SysLink } from '../common-types'; export type TaskStatus = 'active' | 'resolved'; export type TaskSysProps = Pick & { type: 'Task'; space: SysLink; environment: SysLink; parentEntity: Link<'Entry'>; }; export type TaskProps = { sys: TaskSysProps; body: string; assignedTo: Link<'User' | 'Team'>; status: TaskStatus; dueDate?: string; }; export type CreateTaskProps = Omit; export type UpdateTaskProps = Omit & { sys: Pick; }; export type CreateTaskParams = GetEntryParams; export type UpdateTaskParams = GetTaskParams; export type DeleteTaskParams = GetTaskParams & { version: number; }; type TaskApi = { update(): Promise; delete(): Promise; }; export interface Task extends TaskProps, DefaultElements, TaskApi { } /** * @private */ export default function createTaskApi(makeRequest: MakeRequest): TaskApi; /** * @private */ export declare function wrapTask(makeRequest: MakeRequest, data: TaskProps): Task; /** * @private */ export declare const wrapTaskCollection: (makeRequest: MakeRequest, data: import("../common-types").CollectionProp) => import("../common-types").Collection; export {};