import type { GameState, Point, Stone, VariantSpec } from "../types.ts"; /** Whether the favoured colour has made a turn of its own yet. */ export declare function hasBegun(state: GameState, favoured: Stone): boolean; /** * Turns each colour still has inside the horizon: `replies` is how many turns * of its own the other colour has left, each followed by one of the favoured * colour's, and the favoured colour's free turns still to come are counted too. */ export declare function turnsToCome(state: GameState, favoured: Stone, replies: number): { mine: number; theirs: number; }; /** * Whether the favoured colour provably cannot decide the game inside what is * left of the horizon, whatever it plays — the search's cut-off. False means * only "not ruled out"; the search then looks. */ export declare function cannotDecide(state: GameState, favoured: Stone, replies: number): boolean; /** * Whether a game's moves can be narrowed to the points of runs still open: * single stones placed where they are clicked, nothing taken, cleared, moved, * bent or turned, and no winning or losing but by the mover's own line. There a * stone outside every open run can neither help the favoured colour's line nor * block it, so leaving it unsearched loses no line of play that matters. */ export declare function narrowsToOpenRuns(spec: VariantSpec): boolean; /** * The candidate points lying in a run still open to the favoured colour, the * most urgent first: a point in a run holding more of its stones before one in * a run holding fewer. Order changes nothing the search concludes — only how * soon it finds the attack that works, or the block that refutes one. */ export declare function inOpenRuns(state: GameState, favoured: Stone, replies: number, points: readonly Point[]): Point[];