/** * FlowIR translation — the 1:1 projection of a pi-taskflow `Taskflow` into the * `FlowIR` shape. * * **Stub/projection** (M1): this is a *structural* mirror, NOT a compile to * overstory's native inject/emits model (which expects an explicit emit * declaration pi-taskflow doesn't have — see roadmap §6.1). Each phase becomes * one `FlowIRNode`; `inject` is synthesized from `{steps.X}` interpolation refs * (`collectRefs`), `emits` is `[phase.id]`. The overstory-native `kind` lowering * is deliberately deferred. * * Pure, synchronous, never throws. Used by `compileTaskflowToIR` (./index.ts). * * @see docs/internal/overstory-convergence-roadmap.md §3 (M1) */ import { type Taskflow } from "../schema.ts"; import type { CompileError, CompileWarning, FlowIR, TaskflowIRMeta } from "./meta.ts"; /** * Translate a desugared `Taskflow` into a 1:1 `FlowIR` projection + declared * dependency metadata. Never throws: malformed input yields warnings/errors in * the return value, not an exception (so `/tf ir` on a broken flow still * produces a structured diagnostic rather than crashing the tool). * * `usedFallbackHash` is `true` unconditionally in the stub: the hash produced * is `flowDefHash` (the definition fingerprint), NOT the overstory-IR-canonical * hash, so callers can never mistake a stub hash for a canonical one. It flips * to `false` only once the genuine overstory compiler is vendored and the hash * is IR-canonical; a `when` guard remains a *future* fallback driver then. */ export declare function translateTaskflow(def: Taskflow): { ir: FlowIR; meta: TaskflowIRMeta; warnings: CompileWarning[]; errors: CompileError[]; usedFallbackHash: boolean; }; //# sourceMappingURL=translate.d.ts.map