/**
 * Judge runner — spawns a background `claude --print` process that evaluates
 * a commit and writes results to the eval log.
 *
 * The judge is a detached child process so the calling hook can exit immediately.
 * Results appear asynchronously in `.indusk/eval/results.log`.
 */
import type { EvalErrorEntry, EvalScorecard } from "./types.js";
export interface JudgeRunOptions {
    projectRoot: string;
    changeId: string;
    transcriptPath: string;
    mode: "eval" | "baseline";
    evalEndpoint?: string;
}
/**
 * Run the judge as a detached background process.
 *
 * Spawns `claude --print` with the judge prompt and allowed tools whitelist.
 * Collects stdout, parses the scorecard JSON, and appends to the eval log.
 * If anything fails, logs an error entry instead of silently dropping.
 */
export declare function runJudgeBackground(opts: JudgeRunOptions): void;
/**
 * Run the judge synchronously (for testing and manual invocation).
 * Returns the scorecard or error entry.
 */
export declare function runJudgeSync(opts: JudgeRunOptions): Promise<EvalScorecard | EvalErrorEntry>;
