import { JSONSchema } from 'json-schema-to-ts'; declare const BotOutcome: { readonly Victory: "victory"; readonly Defeat: "defeat"; readonly Draw: "draw"; readonly Error: "error"; readonly None: "none"; }; type BotOutcome = (typeof BotOutcome)[keyof typeof BotOutcome]; type StartBotParams = { botIndex: number; serializedConfig: string; type: "practice" | "boss-easy" | "boss-medium" | "boss-hard"; print(message: string): void; println(message: string): void; timeLimit: { move: number; game: number; }; }; type Engine = AsyncGenerator<{ outcome: BotOutcome[] | null; state: State; }, undefined, undefined>; interface Bot { write(message: string): void; writeln(message: string): void; move(payload: string): Promise; end(payload: string): Promise; } type GameStatus = "in-progress" | "not-started" | "done"; interface RenderState { state: State | null; config: Config | null; dimensions: Dimensions; botColors: (string | null | undefined)[]; status: GameStatus; } interface RenderParams { current: RenderState; previous: RenderState | null; } interface Game { config: Config; bots: Bot[]; } interface Dimensions { width: number; height: number; } declare global { const ASSETS_PATH: string; } interface BotInstance { move(payload: string): Promise | string; end(payload: string): Promise | void; } interface BotClass { start(params: StartBotParams): BotInstance | Promise; } interface RenderInstance { render(params: RenderParams): void; } interface RendererClass { create(canvas: HTMLCanvasElement): Promise> | RenderInstance; } interface ConfigPreset { name: string; value: string; } interface ZilchNamespace { configSchema: JSONSchema; configPresets: ConfigPreset[]; parseConfig(rawConfig: RawConfig): Config; summarizeConfig(config: Config): string; serializeConfig(config: Config): string; Renderer: RendererClass; Bot: BotClass; play: (game: Game) => Engine; } export { type Bot, type BotClass, type BotInstance, BotOutcome, type ConfigPreset, type Dimensions, type Engine, type Game, type GameStatus, type RenderInstance, type RenderParams, type RenderState, type RendererClass, type StartBotParams, type ZilchNamespace };