export interface ThreeWayProbs {
  home: number;
  draw: number;
  away: number;
}

export interface TwoWayProbs {
  over: number;
  under: number;
}

export interface ScoreProb {
  score: string;
  prob: number;
}

export interface ValueBoardMatch {
  id: string;
  matchName: string;
  homeTeam: string;
  awayTeam: string;
  league: string;
  country?: string;
  kickoff: number; // mst_utc (epoch ms)
  isCup: boolean;
  vigPct: number | null; // bookmaker margin on the MS market, %
  ms: ThreeWayProbs | null; // calibrated Maç Sonucu
  ou25: TwoWayProbs | null; // 2.5 Alt/Üst
  btts: { yes: number; no: number } | null; // Karşılıklı Gol
  htResult: ThreeWayProbs | null; // 1. Yarı Sonucu
  htOu15: TwoWayProbs | null; // 1. Yarı 1,5 Alt/Üst
  topScores: ScoreProb[]; // calibrated Maç Skoru (top 3)
  expectedGoals: number | null; // derived from the score distribution
  lean: { key: "1" | "X" | "2"; prob: number } | null; // most likely MS pick
}
