import { GraphBudgetLedger } from './graph-budget.js'; export interface GraphFlowRequest { node: { id: string; kind: string; ref?: string; phase?: string; retry?: { limit: number; }; sideEffectMode: string; }; inputs: Record; runId: string; nodeRunId: string; activationId: string; invocationKey: string; } export interface GraphFlowResponse { outputs: Record; usage: { tokens: number; costUsd: number; timeMs: number; }; /** Actual backend attempts including retries and fallback, supplied by trusted adapter. */ attempts: number; /** A decision node that abstained or lacked a capability yields no evidence. * It stops the graph: dependents never run on its absent result. */ status?: 'ok' | 'abstained' | 'unsupported'; } export interface GraphFlowEstimate { attempts: number; tokens: number; costMicros: number; } /** Attach trusted host admission to Flow's existing invokeNode seam. The estimator * must bound a full decision-evaluate call including retries/fallback and unknown * cost; without a conservative estimate, reject before invoking any adapter. */ export declare function admittedDecisionFlowAdapter(ledger: GraphBudgetLedger, estimate: (request: GraphFlowRequest) => GraphFlowEstimate, invoke: (request: GraphFlowRequest) => Promise, signal?: AbortSignal, onObservation?: (observation: { request: GraphFlowRequest; response: GraphFlowResponse; }) => void): (request: GraphFlowRequest) => Promise; //# sourceMappingURL=graph-flow-adapter.d.ts.map