import { type AgentVariant, type RecordEntryResult } from './service'; export type TournamentStatus = 'pending' | 'running' | 'completed' | 'failed'; export type TournamentOptions = { taskType: string; maxParticipants: number; budgetCap: number; policy?: Record; receiptId?: string | null; }; export type Tournament = { id: string; taskType: string; status: TournamentStatus; maxParticipants: number; budgetCap: number; participants: AgentVariant[]; startedAt: number; completedAt: number | null; winnerVariantId: string | null; }; export declare function createTournament(opts: TournamentOptions): Tournament; export type MarkStatusResult = { ok: true; } | { ok: false; error: string; }; export declare function markTournamentStatus(id: string, status: TournamentStatus, winnerVariantId?: string | null): MarkStatusResult; export declare function recordParticipantResult(params: { tournamentId: string; variantId: string; performanceEventId?: string | null; qualityScore?: number | null; cost?: number | null; latencyMs?: number | null; outcome?: string | null; }): RecordEntryResult; export declare function getTournament(id: string): Tournament | null; export declare function totalTournamentCost(tournamentId: string): number;