import type { EvolutionJudgeRuling } from './evolution.js'; export interface ReviewerProfile { /** Base URL of an OpenAI-compatible API, e.g. http://localhost:11434/v1 */ endpoint: string; model: string; /** Name of the environment variable holding the bearer token — never the token itself. */ apiKeyEnv?: string; timeoutMs?: number; temperature?: number; maxTokens?: number; } export interface JudgeRulingRequestResult { ruling: EvolutionJudgeRuling; /** Raw model text, kept for the record. */ raw: string; usage: { promptTokens: number | null; completionTokens: number | null; totalTokens: number | null; }; endpoint: string; model: string; } export declare const DEFAULT_JUDGE_TIMEOUT_MS = 300000; export declare function normalizeReviewerEndpoint(value: string): string; export declare function buildJudgeMessages(analysisMarkdown: string): Array<{ role: 'system' | 'user'; content: string; }>; export declare function parseJudgeRuling(text: string): EvolutionJudgeRuling; export declare function requestJudgeRuling(profile: ReviewerProfile, analysisMarkdown: string, fetchImpl?: typeof fetch): Promise;