/** * Polls `http://localhost:/` until it answers or `timeoutMs` elapses. Shared by `verify` * (waiting on its throwaway vite instance) and `dev` (announcing its own once it's ready) — kept * dependency-free so importing it doesn't pull playwright-core into `dev`, which never touches a * browser. */ export declare function waitForServer(port: number, timeoutMs: number): Promise; /** * Confirm the server answering on `port` is serving THIS project, not some other one. * * `waitForServer` proves something answered; it cannot prove it was the vite this run spawned. * When another project's dev server holds the same port on the other loopback family, our own * vite dies on `--strictPort` a beat AFTER the first poll already got a 200 from the neighbour — * and the run then measures, screenshots and grades a different game, reporting success for one * it never loaded. Every scaffolded project serves its `bitmagic.json` from its vite root, so the * `gameId` in it is the identity check: cheap, and wrong only when the server really is wrong. */ export declare function assertServesGame(port: number, gameId: string): Promise;