/** * Public entry point for the FlowIR compile seam. * * `compileTaskflowToIR` is the content-addressed IR projection used by: * - `/tf ir ` / `action=ir` — render the compiled IR + hash (0 tokens) * - the runtime (`runTaskflowLayers`) — fold `ir.hash` into the cache key * * **S0 (0.2.0):** the genuine compiler (`./compile.ts`) emits canonical FlowIR * and content-addresses it with {@link hashFlowIR}. `usedFallbackHash` is * **false** when IR is produced. The DSL-level `flowDefHash` remains available * for the v2 cache tier (`v2:flowdef:`) during the migration window. * * Pure + async-compatible API (sync body; async retained for callers). Never * throws — a hash failure leaves `hash` unset and `usedFallbackHash` true. * * @see docs/rfc-0.2.0-architecture.md §5, §9 (S0) */ import type { Taskflow } from "../schema.ts"; import type { TaskflowIR } from "./meta.ts"; /** * Compile a (desugared) `Taskflow` into its content-addressed IR. * * The returned `hash` is `ir:<64-hex>` from {@link hashFlowIR} over the * **canonical** FlowIR (key-order / node-order / condition-normalization * invariant). `usedFallbackHash` is false when compilation produced nodes. * * Never throws. */ export declare function compileTaskflowToIR(def: Taskflow): Promise; export type { CompileError, CompileWarning, DeclaredDeps, FlowIR, FlowIRNode, TaskflowIR, TaskflowIRMeta, } from "./meta.ts"; export { phaseFingerprint } from "./phasefp.ts"; export { compileTaskflowToFlowIR, type CompileTaskflowToFlowIRResult } from "./compile.ts"; export { translateTaskflow } from "./translate.ts"; export { FlowIRNodeKind } from "./schema.ts"; export type { FlowIREdge, FlowIRBudget, FlowIRMeta, FlowIR as CanonicalFlowIR, FlowIRNode as CanonicalFlowIRNode, } from "./schema.ts"; export { FlowIRNodeSchema, FlowIREdgeSchema, FlowIRSchema, isFlowIRNode, assertFlowIR, } from "./schema.ts"; export type { NormalizedCond } from "./cond.ts"; export { normalizeCond } from "./cond.ts"; export { canonicalizeFlowIR, hashFlowIR, hashNode } from "./canonical-hash.ts"; //# sourceMappingURL=index.d.ts.map