import { Tag } from '../../../entity/tag/tagState'; import { Task } from '../../../entity/task/taskState'; import { User } from '../../../entity/user/userState'; import { ZeniDate } from '../../../zeniDayJS'; import { TaskGroupKey } from './taskList'; export type SubtaskSortKey = 'name' | 'status' | 'assignee' | 'tag'; export type SubtaskSortOrder = 'asc' | 'desc'; export declare const getDueDateValueFromDueDateGroupId: (groupId: string) => ZeniDate; export declare const getTaskUpdates: (groupByKey: TaskGroupKey, groupId: string) => Partial; /** * Sort a subtask list by one of the sortable columns. Pure — no state * dependency. `statusOrder` is derived from `allTaskStatus` so any new * status added upstream slots in by its enum position instead of * falling into a catch-all bucket. */ export declare const sortSubtasks: (subtasks: Task[], sortKey: SubtaskSortKey | null, sortOrder: SubtaskSortOrder, userList: User[], tagList: Tag[]) => Task[];