import type { AgentDefinition, AgentManifest } from "@sapiom/agent"; import { type LocalStepTrace, type LocalStepTraceSink } from "./dispatcher.js"; import { type StubFile } from "./stubs.js"; export declare const STUBS_FILE: string; export interface RunLocalOptions { definition: AgentDefinition; manifest: AgentManifest; input?: unknown; stubs?: StubFile; maxAttemptsPerStep?: number; onStepTrace?: LocalStepTraceSink; } export type LocalRunOutcome = "completed" | "failed" | "paused" | "running"; export interface UnusedStub { step: string; key: string; } export interface LocalRunResult { outcome: LocalRunOutcome; executionId: string; output?: unknown; error?: unknown; steps: LocalStepTrace[]; unusedStubs: UnusedStub[]; stubWarnings: string[]; } export declare function runLocal(opts: RunLocalOptions): Promise; export declare function runLocalFromDir(opts: { sourceDir: string; input?: unknown; stubs?: StubFile; maxAttemptsPerStep?: number; onStepTrace?: LocalStepTraceSink; }): Promise;