import { spawn } from 'child_process'; export declare const SCORE_SCHEMA_VERSION: 1; export declare const DEFAULT_TIMEOUT_MS = 120000; export interface BranchScore { schemaVersion: typeof SCORE_SCHEMA_VERSION; pass: number; fail: number; loc_delta: number; lint_ok: boolean | null; duration_ms: number; error?: string; testCmd?: string; branchPath: string; baseSha: string; scoredAt: string; } export interface ScoreBranchOptions { branchPath: string; baseSha: string; testCmd?: string; timeoutMs?: number; _spawn?: typeof spawn; _readPackageJson?: (path: string) => Promise; _now?: () => number; _nowIso?: () => string; } export interface RankableBranch { index: number; score: BranchScore | null; } export declare function scoreBranch(opts: ScoreBranchOptions): Promise; export declare function writeScore(farmDir: string, index: number, score: BranchScore): Promise; export declare function rankBranches(branches: RankableBranch[]): number[];