import { AllowedValueWithCodePayload } from '../../commonPayloadTypes/commonPayload'; import { Task } from './taskState'; export interface TaskPayload { assignees: string[]; create_time: string; created_by: string; description: string; due_date: string | null; file_ids: string[]; is_archived: boolean; is_deleted: boolean; is_private: boolean; name: string; priority: AllowedValueWithCodePayload; recurring_end_date: string | null; recurring_frequency: AllowedValueWithCodePayload | null; recurring_start_date: string | null; status: AllowedValueWithCodePayload; tags: TagIdWithNamePayload[]; task_id: string; type: AllowedValueWithCodePayload; update_time: string | null; company_id?: string; company_name?: string; depth?: number | null; group_assignees?: string[]; parent_task_id?: string | null; recurring_days_of_week?: string[] | null; recurring_source_task_id?: string | null; snoozed_until?: string | null; subtasks?: string[] | null; sync_token?: string | null; task_group_ids?: string[] | null; time_spent?: number; } export declare const mapTaskPayloadToTask: (payload: TaskPayload, previousTask?: Task) => Task; export interface TagIdWithNamePayload { name: string; tag_id: string; }