import { Timed } from '@hackbg/time'; import { Console } from '@hackbg/logs'; /** Run several operations in parallel in the same context. */ export declare function parallel(...operations: Function[]): (context: { run: Function; }) => Promise; /** A step is a value object around a function that takes context as first argument. */ export default class Step extends Timed { impl: StepFn; name: string; description?: string; log: Console; constructor(impl: StepFn, name?: string, description?: string, log?: Console); /** - Always async. * - Bind "this" in impl. * @returns updated copy of context. */ call(context: C, ...args: any[]): Promise; static from(specifier: Step | Function | unknown): Step; } export type StepFn = (this: C, ...args: any[]) => D | Promise; export type Steps = (Step | StepFn)[]; //# sourceMappingURL=cmds-step.d.ts.map