import { type ContextPlan } from './context-plan.js'; import type { ArtifactPin, DecisionDefinition, DecisionEvaluationRequest, RulesetResult } from './types.js'; export declare function evaluateDecisionRuleset(request: DecisionEvaluationRequest): Promise; /** * Minimal binding surface the envelope bound reads: the invocation-wide attempt cap and each * alias's target retry ceilings. A full DecisionBinding satisfies this shape; predictors that * never touch credentials (such as the canary dispatcher) pass a mirror of the dispatch binding * instead of inventing a credential reference. */ export interface ContextEnvelopeBinding { readonly spec: { readonly maxAttempts: number; readonly evaluations: Readonly; }>>; }; } /** * Pre-dispatch worst-case bound (#2797) on the completed result envelope of a context-planned * invocation. * * Every evaluation carries one full clone of the context plan alongside the ruleset-level plan, * so the envelope grows with the alias count even when the provider request fits. Usage is * recorded cumulatively as evaluations complete — evaluation i carries i+1 usage entries — and * entries are upserted by key, so retries add none; every evaluation carrying all n entries is * therefore the true upper bound. Attempts are bounded per alias by the binding: no alias can * record more than its targets' retries plus one, nor more than the invocation-wide maxAttempts. * Each probe attempt carries the same evidence a real single dispatch records (requestIdSource * and the single-dispatch batch object), and each probe distribution spans the definition's full * answer domain. Entry admission is monotonic in every counted dimension, so a probe that cannot * satisfy admission proves no completion of the invocation could either; the caller must then * reject before receipts, credentials, admission control or transport instead of discarding * completed provider work after dispatch. A fitting envelope still passes through writer-version * admission when the completed result is written. Null, unknown or non-safe-integer counts fail * closed. */ export declare function contextResultEnvelopeFits(plan: ContextPlan, items: ReadonlyArray<{ alias: string; definition: DecisionDefinition; }>, binding: ContextEnvelopeBinding): boolean; export declare function createDecisionInvocationId(prefix?: string): string; //# sourceMappingURL=evaluate.d.ts.map