/** * Durable-to-YAML compiler — converts procedural TypeScript workflows to YAML DAGs. * * This is "Path 3" for YAML DAG creation: static compilation from durable source * code without executing the workflow. The LLM translates the procedural orchestration * into an equivalent HotMesh YAML DAG that runs without replay overhead. * * Pipeline: * 1. Read source (file or inline string) * 2. Optionally resolve and read the activities module * 3. Extract metadata (activity names, primitives, control flow) * 4. Build LLM messages (system prompt + source + metadata) * 5. Call LLM (temperature 0, retry on parse failure) * 6. Fix known @pipe anti-patterns * 7. Return result compatible with existing YAML workflow CRUD */ import type { CompileDurableOptions, CompileDurableResult } from './types'; export type { CompileDurableOptions, CompileDurableResult } from './types'; /** * Compile a durable TypeScript workflow into a HotMesh YAML DAG. */ export declare function compileDurableToYaml(options: CompileDurableOptions): Promise;