/**
 * Repository Interface: TeamRatingRepository
 * 
 * Port for persisting and retrieving TeamRating snapshots.
 * Snapshots are derived from rating events for fast reads.
 */

import type { TeamRatingSnapshot } from '../services/TeamRatingSnapshotCalculator';

export interface TeamRatingRepository {
  /**
   * Find rating snapshot by team ID
   */
  findByTeamId(teamId: string): Promise<TeamRatingSnapshot | null>;
  
  /**
   * Save or update a team rating snapshot
   */
  save(teamRating: TeamRatingSnapshot): Promise<TeamRatingSnapshot>;
}