/** * setupApiRun — shared helper for engine.run() with API integration. * * Called by all three engines when `api` config is present. * Handles workflow registration and execution creation before the engine executes. */ import { HttpExecutionObserver, type ApiConfig } from './execution-observer.js'; export interface ApiRunSetupResult { observer: HttpExecutionObserver; workflowId: string; workflowVersionId?: string; } /** * Set up API integration for an engine.run() call. * * 1. Creates HttpExecutionObserver from apiConfig * 2. Registers workflow via ensureWorkflow() * 3. If tracking enabled, creates execution record (no dispatch) */ export declare function setupApiRun(apiConfig: ApiConfig, workflow: { name: string; }, execution: { executionId: string; input: unknown; engineType: string; }): Promise; //# sourceMappingURL=api-run.d.ts.map