import type { AgentContext, Message } from "../agent/index.js"; import type { WorkflowAgentCacheEntry, WorkflowCheckpoint, WorkflowExecutionResult } from "./WorkflowContext.js"; interface WorkflowRunnerOptions { agentContext: AgentContext; args: unknown; onAgentCall(): void; onAgentResult?(index: number, result: WorkflowAgentCacheEntry): void | Promise; onCheckpoint?(checkpoint: WorkflowCheckpoint): void | Promise; onLog(message: string): void; parentToolCallId?: string; parentMessages?: readonly Message[]; resumeAgentCalls: readonly (WorkflowAgentCacheEntry | undefined)[]; resumeCheckpoint?: WorkflowCheckpoint; signal: AbortSignal; workflowRunId: string; } export declare class WorkflowScriptRunner { #private; constructor(options: WorkflowRunnerOptions); run(script: string): Promise; } export {};