import { TailorEnv } from "../runtime/types.mjs"; import { WorkflowJob } from "../configure/services/workflow/job.mjs"; import { Workflow } from "../configure/services/workflow/workflow.mjs"; import "../configure/services/workflow/index.mjs"; //#region src/vitest/workflow-local.d.ts type AnyWorkflowJob = WorkflowJob; type AnyWorkflow = Workflow; type WorkflowInput = W["mainJob"] extends WorkflowJob ? I : never; type WorkflowOutput = W["mainJob"] extends WorkflowJob ? Awaited : never; export interface RunWorkflowLocallyOptions { /** Env passed to workflow job bodies during this local run. */ env?: TailorEnv; } /** * Run a workflow's main job and dependent job starts locally with real job bodies. * * Use this for local full-chain workflow tests. Regular `.start()` calls * delegate to the platform workflow runtime and should be mocked with * `mockWorkflow()` when you are not intentionally running the local chain. * @param workflow - Workflow definition to run * @returns The main job output */ export declare function runWorkflowLocally>>(workflow: W): Promise>; /** * Run a no-input workflow locally with optional runner settings. * @param workflow - Workflow definition to run * @param args - Must be `undefined` for no-input workflows * @param options - Local runner options * @returns The main job output */ export declare function runWorkflowLocally>>(workflow: W, args: undefined, options?: RunWorkflowLocallyOptions): Promise>; /** * Run a workflow locally with real job bodies. * @param workflow - Workflow definition to run * @param args - Arguments passed to the workflow's main job * @param options - Local runner options * @returns The main job output */ export declare function runWorkflowLocally(workflow: W, args: WorkflowInput, options?: RunWorkflowLocallyOptions): Promise>; //#endregion