import { Task } from './task'; import { TaskState } from './workflow/types'; export declare const uniqueTaskMap: []>(tasks: T) => Map>; export declare const createTaskStateMap: []>(tasks: T) => Map; export declare const taskIsDone: (taskState: TaskState) => boolean; export declare const allTasksComplete: (taskStates: Map) => boolean; export declare const noRunningTasks: (taskStates: Map) => boolean; export declare function getReadyTasks[]>(uniqueTasks: Map>, taskStates: Map): Task[]; export declare function ensurePromise(maybePromise: unknown): Promise;