declare global {
	// Build-time constant injected by Vite from package.json version.
	const __APP_VERSION__: string;

	namespace App {
		// Shallow-routing state for the single-URL app-shell: the screen
		// (and active game) live in `page.state` so browser Back/Forward
		// move between screens while the address bar stays at /game/.
		interface PageState {
			screen?:
				| "login"
				| "lobby"
				| "lobby-create"
				| "profile"
				| "game"
				| "games-active-past"
				| "games-recruitment"
				| "games-invitations"
				| "games-private-games"
				| "synthetic-reports";
			gameId?: string | null;
		}
	}
}

export {};
