import { FC } from "react"; import { Position } from "../interfaces/Position"; import { Move } from "../interfaces/Move"; import { ValidMoves } from "../types/ValidMoves"; import { PieceColor } from "../types/PieceColor"; export interface BoardProps { /** allow round markers with right click */ allowMarkers?: boolean; /** true if current position contains check */ check?: boolean; /** allow click-click moves */ clickable?: boolean; /** allow moves & premoves to use drag'n drop */ draggable?: boolean; /** squares part of the last move ["c3", "c4"] */ lastMoveSquares?: string[]; /** turn to play */ turnColor?: PieceColor; /** Max width in pixels */ maxWidth?: number; /** Min width in pixels */ minWidth?: number; /** color that can move. white | black | both */ movableColor?: PieceColor | "both"; /** called after move */ onMove?(move: Move): void; /** called after resize */ onResize?(width: number): void; /** called after the premove has been set */ onSetPremove?(move: Move, playPremove: () => void, cancelPremove: () => void): void; /** called after the premove has been unset */ onUnsetPremove?(): void; /** board orientation. white | black */ orientation?: PieceColor; /** FEN string or Position object */ position?: Position | string; /** allow premoves for color that can not move */ premovable?: boolean; /** allow resize */ resizable?: boolean; /** include coords attributes */ showCoordinates?: boolean; /** The time in seconds it takes for a piece to slide to the target square */ transitionDuration?: number; /** valid moves. {"a2" ["a3" "a4"] "b1" ["a3" "c3"]} */ validMoves?: ValidMoves; /** don't bind events: the user will never be able to move pieces around */ viewOnly?: boolean; /** board width in pixels */ width?: number; } /** * Renders a chess board using React */ export declare const Board: FC;