/** * Copyright (c) 2018 mol* contributors, licensed under MIT, See LICENSE file for more info. * * @author David Sehnal */ import { Task } from '../task.js'; import { RuntimeContext } from '../execution/runtime-context.js'; export type MultistepFn = (params: P, step: (s: number) => Promise | void, ctx: RuntimeContext) => Promise; declare function MultistepTask(name: string, steps: string[], f: MultistepFn, onAbort?: () => void): (params: P) => Task; export { MultistepTask };