import { Bye, CompletedRound, Game, NationalRating, Player, PlayerAcceleration, PointAdjustment, ProhibitedPairing, ScoringSystem, Team, TournamentData, TournamentData as TournamentData$1, TournamentMetadata } from "@echecs/tournament"; //#region src/types.d.ts type Version = 'TRF16' | 'TRF26'; interface ParseError { column: number; line: number; message: string; offset: number; } interface ParseOptions { onError?: (error: ParseError) => void; onWarning?: (warning: ParseWarning) => void; } interface ParseWarning { column: number; line: number; message: string; offset: number; } interface AbnormalPoints { gamePoints: number; matchPoints: number; playerIds: string[]; round: number; type: ' ' | '+' | '-' | 'D' | 'F' | 'H' | 'L' | 'W' | 'Z'; } interface ForfeitedMatch { blackTeamId: string; round: number; type: '--' | '-+' | '+-'; whiteTeamId: string; } interface OutOfOrderLineup { opponentTeamId: string; playerIds: (string | null)[]; round: number; teamId: string; } interface TeamPairingAllocatedBye { gamePoints: number; matchPoints: number; teamIdPerRound: (string | null)[]; } interface TeamRoundResult { gamePoints: number; matchPoints: number; nickname?: string; results: TeamRoundResult801[] | TeamRoundResult802[]; tag: '801' | '802'; teamId: string; } interface TeamRoundResult801 { opponentId: string | null; raw: string; round: number; type?: 'FPB' | 'HPB' | 'PAB' | 'ZPB'; } interface TeamRoundResult802 { color?: 'b' | 'w'; forfeit?: boolean; gamePoints: number; opponentId: string | null; round: number; type?: 'FPB' | 'HPB' | 'PAB' | 'ZPB'; } /** TRF-specific bye record (tag 240) — distinct from tournament's per-round Bye. */ interface TrfBye { playerIds: string[]; round: number; type: 'F' | 'H' | 'Z'; } interface StringifyOptions { abnormalPoints?: AbnormalPoints[]; colourSequence?: string; encodedTimeControl?: string; encodedTournamentType?: string; forfeitedMatches?: ForfeitedMatch[]; initialColour?: 'B' | 'W'; numberOfPlayers?: number; numberOfRatedPlayers?: number; numberOfTeams?: number; onWarning?: (warning: ParseWarning) => void; outOfOrderLineups?: OutOfOrderLineup[]; standingsTiebreaks?: string[]; teamPairingAllocatedByes?: TeamPairingAllocatedBye; teamRoundResults?: TeamRoundResult[]; teamScoringSystem?: string; useRankingId?: boolean; version?: Version; } //#endregion //#region src/parse.d.ts declare function parse(input: string, options?: ParseOptions): TournamentData$1 | null; //#endregion //#region src/stringify.d.ts declare function stringify(data: TournamentData$1, options?: StringifyOptions): string; //#endregion export { type AbnormalPoints, type Bye, type CompletedRound, type ForfeitedMatch, type Game, type NationalRating, type OutOfOrderLineup, type ParseError, type ParseOptions, type ParseWarning, type Player, type PlayerAcceleration, type PointAdjustment, type ProhibitedPairing, type ScoringSystem, type StringifyOptions, type Team, type TeamPairingAllocatedBye, type TeamRoundResult, type TeamRoundResult801, type TeamRoundResult802, type TournamentData, type TournamentMetadata, type TrfBye, type Version, parse, stringify };