export interface JudgeResult { /** Score in [0, 1] (clamped). 0 on any failure to obtain a verdict. */ readonly score: number; /** score ≥ threshold (default 0.5). */ readonly pass: boolean; /** The model's one-line rationale, or an error string. */ readonly reason: string; } export interface JudgeOptions { /** The text to grade. */ readonly output: string; /** The grading rubric — describe what earns a high vs low score. */ readonly rubric: string; /** Model alias. Default "haiku" (cheap; judging is a simple call). */ readonly model?: string; /** pass = score ≥ threshold. Default 0.5. */ readonly threshold?: number; /** Per-call timeout ms. Default 60000. */ readonly timeoutMs?: number; } /** Grade `output` against `rubric` with a model. Synchronous (for `measure`). */ export declare function judge(opts: JudgeOptions): JudgeResult; /** * Parse a verdict out of the grader's stdout — pure, so the parsing is testable * without a model. Handles `claude --output-format json` (text wrapped in a * `result` field), bare/prose-wrapped JSON, clamping, and the pass threshold. */ export declare function parseJudgeOutput(stdout: string, threshold?: number): JudgeResult; //# sourceMappingURL=judge.d.ts.map