import { type DecisionGraph } from './graph.js'; import { type GraphCeilings } from './graph-evidence.js'; /** Flow gate ID guarding one node of an approval stage. The gate is an existing * Flow `gate` node: Flow refuses to invoke it until the host approves it. */ export declare function decisionGraphApprovalGateId(nodeId: string): string; /** Compile an authorized decision DAG into existing Flow skill nodes. No new executor/node kind. */ export declare function decisionGraphToFlow(graph: DecisionGraph, options: { resolvedPins: ReadonlySet; /** Stable ID must be discovered and authorized by the host, not inferred from graph evidence. */ decisionSkillId: `aiwg:skill:${string}`; terminal: string; ceilings?: GraphCeilings[]; /** Stages whose nodes wait for a host-approved Flow gate before any dispatch. */ approvalStages?: readonly number[]; }): { apiVersion: "flow.aiwg.io/v1alpha1"; kind: "FlowGraph"; metadata: { name: string; }; spec: { entry: string[]; candidates: { id: `aiwg:skill:${string}`; kind: string; }[]; state: { fields: { name: string; schema: { type: string; }; reducer: string; }[]; }; permissions: never[]; capabilities: never[]; ceilings: { activations: number; tokens: number; costUsd: number; timeMs: number; concurrency: number; }; nodes: ({ id: string; kind: "gate"; phase: string; dependsOn: string[]; inputs: never[]; outputs: never[]; capabilities: never[]; permissions: never[]; sideEffectMode: "none"; } | { inputs: ({ name: string; schema: { type: string[]; }; from: string; } | { name: string; schema: { type: string; }; value: string; } | { name: string; schema: { type: string; }; value: import("./graph.js").GraphPin; })[]; outputs: { state?: string | undefined; name: string; schema: { type: string; } | { type: string[]; }; }[]; capabilities: never[]; permissions: never[]; sideEffectMode: "none"; retry: { limit: number; backoff: "none"; on: "failure"[]; }; dependsOn?: string[] | undefined; id: string; kind: "skill"; ref: `aiwg:skill:${string}`; phase: string; })[]; routes: ({ when?: undefined; from: string; to: string; } | { when: { expression: string; }; from: string; to: string; })[]; joins: never[]; failure: { onNodeFailure: string; maxFailures: number; }; output: { mode: string; from: string; schema: { type: string[]; }; }; trace: { level: string; redact: never[]; }; }; }; //# sourceMappingURL=graph-flow.d.ts.map