import type { Cell, GameSettings, GameState, Point, Stone } from "./types.ts"; export type DiagramOptions = { /** Colour to move. Defaults to whoever has fewer stones, else black. */ toPlay?: Stone; settings?: Partial; }; /** * Builds a position from an ASCII diagram, which keeps threat tests readable: * * ``` * . . . . . . . * . . x x x . . * . . . . . . . * ``` * * `x` is black, `o` is white, `#` an obstacle, `.` empty. Whitespace between * cells is ignored; the board is square, sized from the number of rows. */ export declare function fromDiagram(diagram: string, options?: DiagramOptions): GameState; /** Reads a cell straight out of a diagram-built state, for assertions. */ export declare function at(state: GameState, point: Point): Cell; /** Compact `row,col` rendering, so failed expectations are readable. */ export declare function show(points: Point[]): string[];