import type { GameState, Stone } from "../types.ts"; /** * The position after every pass the rules force: none when the colour to move * has something to play, one when only it is stuck, and two — ending the game * — when neither side can move. Never a pass for a colour with a move, and * never Go's, which is a choice. * * @param state - The current immutable game position. * @returns The position after recording any required automatic passes. * @example * ```ts * import { createGame, passesOwed } from "@johnmorrisdotca/narabe"; * * const state = createGame({variant:"freestyle",size:15}); * console.log(passesOwed(state)); * ``` */ export declare function passesOwed(state: GameState): GameState; /** * The colour whose turn passed because it had no move, as the latest turn left * the board — or null when nobody's did. * * Two ways a turn passes, and the record says both: a forced pass on the record, * and the flipping games' pass with no row at all, where the colour that just * moved is to move again. A pass somebody chose — Go's — is not one. * * @param state - The current immutable game position. * @returns The colour whose forced pass was recorded, or null when the latest move was not such a pass. * @example * ```ts * import { createGame, turnPassedBy } from "@johnmorrisdotca/narabe"; * * const state = createGame({variant:"freestyle",size:15}); * console.log(turnPassedBy(state)); * ``` */ export declare function turnPassedBy(state: GameState): Stone | null; /** Whether the game ended because neither side had a move: two forced passes, the last two moves on the record. * * @param state - The current immutable game position. * @returns Whether the game ended because neither side had a move: two forced passes, the last two moves on the record. * @example * ```ts * import { createGame, endedWithNoMoves } from "@johnmorrisdotca/narabe"; * * const state = createGame({variant:"freestyle",size:15}); * console.log(endedWithNoMoves(state)); * ``` */ export declare function endedWithNoMoves(state: GameState): boolean;