UNPKG

unofficial-ravensburger-playhub-mcp

Version:
17 lines (16 loc) 1.05 kB
/** * Human-readable formatters for events, stores, standings, and registrations. */ import type { Event, GameStore, LeaderboardResult, PlayerStats, RegistrationEntry, RoundMatchEntry, StandingEntry } from "./types.js"; export declare function formatStore(gameStore: GameStore): string; export declare function formatMatchEntry(match: RoundMatchEntry, index: number): string; export declare function formatStandingEntry(entry: StandingEntry, index: number): string; export declare function formatRegistrationEntry(entry: RegistrationEntry, index: number): string; export declare function formatEvent(event: Event): string; /** Parse record string (e.g. "3-0-1" or "4-2") to wins and losses. Returns { wins: 0, losses: 0 } if unparseable. */ export declare function parseRecordToWinsLosses(record: string | undefined): { wins: number; losses: number; }; export declare function formatLeaderboardEntry(entry: PlayerStats, rank: number): string; export declare function formatLeaderboard(result: LeaderboardResult, sortLabel: string): string;