import { type NextStepDirective, type OrchestrationDefinition } from "@sapiom/orchestration"; import { type StepDispatcher, type StepDispatchRequest, type WorkflowRunnerCore } from "@sapiom/orchestration-runtime"; import type { StubFile } from "./stubs.js"; export interface LogEntry { level: "info" | "warn" | "error" | "debug"; msg: string; meta?: Record; } export interface LocalStepTrace { step: string; attempt: number; input: unknown; status: "succeeded" | "threw"; output?: unknown; directive?: NextStepDirective; error?: { name: string; message: string; stack?: string; }; logs: LogEntry[]; } export declare class LocalStubDispatcher implements StepDispatcher { private readonly definition; private readonly stubs; private core; private maxAttemptsPerStep; private signals; readonly trace: LocalStepTrace[]; readonly usedKeysByStep: Map>; readonly stubWarnings: Set; constructor(definition: OrchestrationDefinition, stubs: StubFile); setCore(core: WorkflowRunnerCore): void; setMaxAttempts(max: number): void; setSignals(signals: Map): void; dispatch(request: StepDispatchRequest): Promise; }