import { l as ClientState, p as GameEvent } from "../index-eCgOhnMT.cjs"; //#region src/server/createServer.d.ts type Server = ReturnType; declare const createServer: (logKey: string, maxGames: number, watchdogIntervalMs: number) => { readonly routes: readonly [{ readonly path: "/createGame"; readonly action: (userId: string, username: string) => { readonly success: true; readonly gameId: string; readonly playerId: string; } | { readonly success: false; readonly error: "maxGamesReached"; }; }, { readonly path: "/getClientStateAndClearEvents"; readonly action: (input: unknown) => { readonly success: false; readonly error: "invalidInput"; } | { readonly success: true; readonly state: ClientState; } | { readonly success: false; readonly error: "playerNotFound" | "gameNotFound"; }; }, { readonly path: "/getEventsAndClearAcknowledged"; readonly action: (input: unknown) => { readonly success: false; readonly error: "invalidInput"; } | { readonly success: true; readonly events: readonly GameEvent[]; } | { readonly success: false; readonly error: "playerNotFound" | "gameNotFound"; }; }, { readonly path: "/getJoinableGames"; readonly action: () => { readonly games: readonly { readonly id: string; readonly numPlayers: number; }[]; }; }, { readonly path: "/joinGame"; readonly action: (input: unknown, userId: string, username: string) => { readonly success: true; readonly playerId: string; } | { readonly success: false; readonly error: "invalidInput"; } | { readonly success: false; readonly error: "invalidStatus" | "maxPlayersReached" | "alreadyInGame" | "gameNotFound"; }; }, { readonly path: "/leaveGame"; readonly action: (input: unknown) => { readonly success: true; } | { readonly success: false; readonly error: "invalidInput"; } | { readonly success: false; readonly error: "playerNotFound" | "gameNotFound"; }; }, { readonly path: "/sendChat"; readonly action: (input: unknown) => { readonly success: true; } | { readonly success: false; readonly error: "invalidInput"; } | { readonly success: false; readonly error: "playerNotFound" | "gameNotFound"; }; }, { readonly path: "/startGame"; readonly action: (input: unknown) => { readonly success: true; } | { readonly success: false; readonly error: "invalidInput"; } | { readonly success: false; readonly error: "playerNotFound" | "invalidStatus" | "playerNotAdmin" | "minPlayersNotReached" | "gameNotFound"; }; }, ...({ readonly path: "/drawCard"; readonly action: (input: unknown) => { readonly success: true; } | { readonly success: false; readonly error: "playerNotFound" | "invalidStatus" | "outOfTurn" | "hasPlayableCard" | "gameNotFound" | "invalidInput"; }; } | { readonly path: "/playCard"; readonly action: (input: unknown) => { readonly success: true; } | { readonly success: false; readonly error: "playerNotFound" | "invalidStatus" | "outOfTurn" | "cardNotFound" | "cardIsWild" | "cardNotPlayable" | "gameNotFound" | "invalidInput"; }; } | { readonly path: "/playWildCard"; readonly action: (input: unknown) => { readonly success: true; } | { readonly success: false; readonly error: "playerNotFound" | "invalidStatus" | "outOfTurn" | "cardNotFound" | "cardNotPlayable" | "cardNotWild" | "gameNotFound" | "invalidInput"; }; })[]]; }; //#endregion export { type Server, createServer }; //# sourceMappingURL=index.d.cts.map