/** Offline contract only. This module never obtains credentials or dispatches work. */ export interface DecisionGraph { schemaVersion: 'decision-graph/v1'; id: string; entry: string; terminals: string[]; pattern?: 'custom' | 'shortlist-rerank' | 'taxonomy-beam' | 'extractor-verifier-fallback'; nodes: Array<{ id: string; stage: number; subject: string; target: string; model: string; egress: string; stateDigest: `sha256:${string}`; definition: GraphPin; binding: GraphPin; input: string[]; output: string[]; }>; edges: Array<{ from: string; to: string; source: string; destination: string; /** Trusted control: observe a declared boolean output only; evidence cannot author edges. */ when?: { source: string; equals: boolean; }; }>; budget: { attempts: number; deadlineMs: number; tokens: number; costMicros: number; fanOut: number; beamWidth: number; depth: number; concurrency: number; }; stageBudgets?: Array<{ stage: number; limits: DecisionGraph['budget']; }>; } export interface GraphPin { id: string; version: string; digest: `sha256:${string}`; } export interface GraphPlan { schemaVersion: 'decision-graph-plan/v1'; graphDigest: `sha256:${string}`; stages: Array<{ stage: number; nodes: string[]; batches: string[][]; fanOut: string[]; }>; edges: DecisionGraph['edges']; planDigest: `sha256:${string}`; } export declare class DecisionGraphError extends Error { constructor(message: string); } /** resolvedPins must be supplied by the trusted caller; neither evidence nor model state can supply it. */ export declare function planDecisionGraph(value: unknown, resolvedPins: ReadonlySet): GraphPlan; //# sourceMappingURL=graph.d.ts.map