/** * Pure decision functions a deterministic replay can call **without importing * `runtime.ts`** (which drags in the process-spawning runner). These are the * only runtime decisions that are (a) deterministic and (b) re-evaluable against * recorded data: a gate verdict parsed from text, and a budget check tallied * against recorded usage. * * Extracted from `runtime.ts` as a preparatory seam for 0.2.0 replay. The * originals are re-exported from `runtime.ts` for backward compatibility; new * pure consumers (replay) import from here. */ import { type UsageStats } from "./usage.ts"; /** A gate verdict parsed from a (possibly JSON, possibly free-text) output. */ export declare function parseGateVerdict(output: string): { verdict: "pass" | "block"; reason?: string; }; /** * Budget check against accumulated usage. Decoupled from `RunState`: takes the * minimal structural input replay can assemble from a trace, so this module * never imports `runtime.ts`. */ export interface BudgetCheckInput { maxUSD?: number; maxTokens?: number; /** Per-phase recorded usage; summed with `aggregateUsage`. */ usages: (UsageStats | undefined)[]; } export declare function overBudget(input: BudgetCheckInput): { over: boolean; reason: string; }; /** * Parse a tournament judge's pick. Fail-open: unreadable → variant 1. * Shared by imperative runtime and the event kernel (must stay pure). */ export declare function parseTournamentWinner(output: string, count: number): { winner: number; reason?: string; }; //# sourceMappingURL=deterministic.d.ts.map