import type { MatchInput } from '../domain/interfaces/match.interface'; import type { Player } from '../domain/interfaces/player.interface'; import type { NormalizedScore } from '../domain/types/score.types'; /** * Normalize match scores. * * Single (football): [2, 1] * Sets (tennis): [[6, 4], [3, 6], [7, 5]] * Nested periods: [[[6, 7], [7, 9]], [6, 3]] */ export declare class ScoreHelper { static normalize(raw: unknown, scoreType?: string | null): NormalizedScore | null; private static normalizePeriod; /** * Build score from match.score or per-player score fields. */ static resolveMatchScore(rawMatch: MatchInput | null | undefined, p1: Player | null, p2: Player | null): NormalizedScore | null; private static toScoreNumber; /** Per-player display value (single or sets). */ static formatScoreForSlot(score: NormalizedScore | null | undefined, slotIndex: number): string | null; /** Per-player value for single-score mode */ static singleScoreForSlot(score: NormalizedScore | null | undefined, slotIndex: number): number | null; static clone(score: NormalizedScore | null | undefined): NormalizedScore | null; static appendForSlot(parent: Element | null | undefined, score: NormalizedScore | null | undefined, slotIndex: number): boolean; }