UNPKG

alvamind-workflow

Version:

A lightweight and flexible workflow automation library for JavaScript/TypeScript projects

12 lines 666 B
import { Command, WorkflowContext, CommandResult } from "./types.js"; export declare let isRunning: boolean; export declare const setIsRunning: (value: boolean) => void; export declare const setTestMode: (enabled: boolean) => void; export declare const formatTime: (ms: number) => string; export declare function executeCommand({ command, originalCmd, name, skippable, callback, id }: Command, step: number, total: number, interactive?: boolean, context?: WorkflowContext): Promise<{ duration: number; branchResult?: string; result?: CommandResult; }>; export declare function createDefaultContext(): WorkflowContext; //# sourceMappingURL=runner.d.ts.map