react-chessboard-ui 2.14.0 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,8 @@
1
- import { FC } from 'react';
2
- interface ArrowProps {
3
- start: number[];
4
- end: number[];
5
- color: string;
6
- }
7
- export declare const Arrow: FC<ArrowProps>;
8
- export {};
1
+ import { FC } from 'react';
2
+ interface ArrowProps {
3
+ start: number[];
4
+ end: number[];
5
+ color: string;
6
+ }
7
+ export declare const Arrow: FC<ArrowProps>;
8
+ export {};
@@ -1,15 +1,15 @@
1
- import { FC } from "react";
2
- import { CellPos } from "../JSChessEngine";
3
- import { ArrowCoords, ChessBoardConfig } from "./models";
4
- declare type ArrowLayoutType = {
5
- startArrowCoord: CellPos;
6
- arrowsCoords: ArrowCoords[];
7
- externalArrowsCoords?: ArrowCoords[];
8
- externalArrows?: (ArrowCoords & {
9
- color?: string;
10
- })[];
11
- grabbingPos: CellPos;
12
- boardConfig: ChessBoardConfig;
13
- };
14
- export declare const ArrowLayout: FC<ArrowLayoutType>;
15
- export {};
1
+ import { FC } from 'react';
2
+ import { CellPos } from '../JSChessEngine';
3
+ import { ArrowCoords, ChessBoardConfig } from './models';
4
+ type ArrowLayoutType = {
5
+ startArrowCoord: CellPos;
6
+ arrowsCoords: ArrowCoords[];
7
+ externalArrowsCoords?: ArrowCoords[];
8
+ externalArrows?: (ArrowCoords & {
9
+ color?: string;
10
+ })[];
11
+ grabbingPos: CellPos;
12
+ boardConfig: ChessBoardConfig;
13
+ };
14
+ export declare const ArrowLayout: FC<ArrowLayoutType>;
15
+ export {};
@@ -1,22 +1,22 @@
1
- import { PieceColor, GameResult, MoveData, SquarePos } from "../JSChessEngine";
2
- import { FC } from "react";
3
- import { ArrowCoords, ChangeMove, ChessBoardConfig, ClickData } from "./models";
4
- declare type ChessBoardProps = {
5
- FEN: string;
6
- onChange: (moveData: MoveData) => void;
7
- onEndGame: (result: GameResult) => void;
8
- onClick?: (data: ClickData) => void;
9
- change?: ChangeMove;
10
- reversed?: boolean;
11
- config?: Partial<ChessBoardConfig>;
12
- playerColor?: PieceColor;
13
- viewOnly?: boolean;
14
- moveHighlight?: [SquarePos, SquarePos];
15
- moveArrows?: ArrowCoords[];
16
- arrows?: (ArrowCoords & {
17
- color?: string;
18
- })[];
19
- toggleTurn?: boolean;
20
- };
21
- export declare const ChessBoard: FC<ChessBoardProps>;
22
- export {};
1
+ import { PieceColor, GameResult, MoveData, SquarePos } from '../JSChessEngine';
2
+ import { FC } from 'react';
3
+ import { ArrowCoords, ChangeMove, ChessBoardConfig, ClickData } from './models';
4
+ type ChessBoardProps = {
5
+ FEN: string;
6
+ onChange: (moveData: MoveData) => void;
7
+ onEndGame: (result: GameResult) => void;
8
+ onClick?: (data: ClickData) => void;
9
+ change?: ChangeMove;
10
+ reversed?: boolean;
11
+ config?: Partial<ChessBoardConfig>;
12
+ playerColor?: PieceColor;
13
+ viewOnly?: boolean;
14
+ moveHighlight?: [SquarePos, SquarePos];
15
+ moveArrows?: ArrowCoords[];
16
+ arrows?: (ArrowCoords & {
17
+ color?: string;
18
+ })[];
19
+ toggleTurn?: boolean;
20
+ };
21
+ export declare const ChessBoard: FC<ChessBoardProps>;
22
+ export {};
@@ -1,11 +1,11 @@
1
- import { FC } from "react";
2
- import { ChessBoardConfig } from "./models";
3
- import { SquarePos } from "../JSChessEngine";
4
- declare type ChessBoardCellsLayoutProps = {
5
- boardConfig: ChessBoardConfig;
6
- size?: number;
7
- movesTrail?: [SquarePos, SquarePos];
8
- moveHighlight?: [SquarePos, SquarePos];
9
- };
10
- export declare const ChessBoardCellsLayout: FC<ChessBoardCellsLayoutProps>;
11
- export {};
1
+ import { FC } from 'react';
2
+ import { ChessBoardConfig } from './models';
3
+ import { SquarePos } from '../JSChessEngine';
4
+ type ChessBoardCellsLayoutProps = {
5
+ boardConfig: ChessBoardConfig;
6
+ size?: number;
7
+ movesTrail?: [SquarePos, SquarePos];
8
+ moveHighlight?: [SquarePos, SquarePos];
9
+ };
10
+ export declare const ChessBoardCellsLayout: FC<ChessBoardCellsLayoutProps>;
11
+ export {};
@@ -1,17 +1,17 @@
1
- import { FC } from "react";
2
- import { SquarePos } from "../JSChessEngine";
3
- import { ChessBoardConfig } from "./models";
4
- declare type ChessBoardControlLayoutProps = {
5
- size?: number;
6
- boardConfig: ChessBoardConfig;
7
- onClick: (position: SquarePos) => void;
8
- onGrabStart: (position: SquarePos) => void;
9
- onGrabStartRight: (position: SquarePos) => void;
10
- onGrabEnd: (position: SquarePos) => void;
11
- onGrabEndRight: (position: SquarePos) => void;
12
- onGrabbing: (x: number, y: number) => void;
13
- onRightClick: (position: SquarePos) => void;
14
- onGrabbingCell: (position: SquarePos) => void;
15
- };
16
- export declare const ChessBoardControlLayout: FC<ChessBoardControlLayoutProps>;
17
- export {};
1
+ import { FC } from 'react';
2
+ import { SquarePos } from '../JSChessEngine';
3
+ import { ChessBoardConfig } from './models';
4
+ type ChessBoardControlLayoutProps = {
5
+ size?: number;
6
+ boardConfig: ChessBoardConfig;
7
+ onClick: (position: SquarePos) => void;
8
+ onGrabStart: (position: SquarePos) => void;
9
+ onGrabStartRight: (position: SquarePos) => void;
10
+ onGrabEnd: (position: SquarePos) => void;
11
+ onGrabEndRight: (position: SquarePos) => void;
12
+ onGrabbing: (x: number, y: number) => void;
13
+ onRightClick: (position: SquarePos) => void;
14
+ onGrabbingCell: (position: SquarePos) => void;
15
+ };
16
+ export declare const ChessBoardControlLayout: FC<ChessBoardControlLayoutProps>;
17
+ export {};
@@ -1,12 +1,12 @@
1
- import { Cell } from "../JSChessEngine";
2
- import { FC } from "react";
3
- import { ChangeMove, ChessBoardConfig } from "./models";
4
- declare type ChessBoardFiguresLayoutProps = {
5
- initialState: Cell[][];
6
- change?: ChangeMove;
7
- reversed?: boolean;
8
- animated?: boolean;
9
- boardConfig: ChessBoardConfig;
10
- };
11
- export declare const ChessBoardFiguresLayout: FC<ChessBoardFiguresLayoutProps>;
12
- export {};
1
+ import { Cell } from '../JSChessEngine';
2
+ import { FC } from 'react';
3
+ import { ChangeMove, ChessBoardConfig } from './models';
4
+ type ChessBoardFiguresLayoutProps = {
5
+ initialState: Cell[][];
6
+ change?: ChangeMove;
7
+ reversed?: boolean;
8
+ animated?: boolean;
9
+ boardConfig: ChessBoardConfig;
10
+ };
11
+ export declare const ChessBoardFiguresLayout: FC<ChessBoardFiguresLayoutProps>;
12
+ export {};
@@ -1,15 +1,15 @@
1
- import { FC } from "react";
2
- import { SquarePos, Piece } from "../JSChessEngine";
3
- import { ChessBoardConfig } from "./models";
4
- declare type ChessBoardInteractiveLayoutProps = {
5
- size?: number;
6
- boardConfig: ChessBoardConfig;
7
- selectedPos: SquarePos;
8
- possibleMoves: SquarePos[];
9
- markedCells: SquarePos[];
10
- holdedFigure?: Piece;
11
- grabbingPos: SquarePos;
12
- onHasCheck: (cellPos: SquarePos) => boolean;
13
- };
14
- export declare const ChessBoardInteractiveLayout: FC<ChessBoardInteractiveLayoutProps>;
15
- export {};
1
+ import { FC } from 'react';
2
+ import { SquarePos, Piece } from '../JSChessEngine';
3
+ import { ChessBoardConfig } from './models';
4
+ type ChessBoardInteractiveLayoutProps = {
5
+ size?: number;
6
+ boardConfig: ChessBoardConfig;
7
+ selectedPos: SquarePos;
8
+ possibleMoves: SquarePos[];
9
+ markedCells: SquarePos[];
10
+ holdedFigure?: Piece;
11
+ grabbingPos: SquarePos;
12
+ onHasCheck: (cellPos: SquarePos) => boolean;
13
+ };
14
+ export declare const ChessBoardInteractiveLayout: FC<ChessBoardInteractiveLayoutProps>;
15
+ export {};
@@ -1,11 +1,11 @@
1
- import { FC } from 'react';
2
- import { Piece, PieceColor } from '../JSChessEngine';
3
- import { ChessBoardConfig } from './models';
4
- interface FigurePickerProps {
5
- boardConfig: ChessBoardConfig;
6
- color: PieceColor;
7
- forPawnTransform?: boolean;
8
- onSelect: (figure: Piece) => void;
9
- }
10
- export declare const FigurePicker: FC<FigurePickerProps>;
11
- export {};
1
+ import { FC } from 'react';
2
+ import { Piece, PieceColor } from '../JSChessEngine';
3
+ import { ChessBoardConfig } from './models';
4
+ interface FigurePickerProps {
5
+ boardConfig: ChessBoardConfig;
6
+ color: PieceColor;
7
+ forPawnTransform?: boolean;
8
+ onSelect: (figure: Piece) => void;
9
+ }
10
+ export declare const FigurePicker: FC<FigurePickerProps>;
11
+ export {};
@@ -1,10 +1,10 @@
1
- import { CellPos, Figure } from "../JSChessEngine";
2
- import { FC } from "react";
3
- import { ChessBoardConfig } from "./models";
4
- declare type HoldedFigureProps = {
5
- holdedFigure?: Figure;
6
- grabbingPos: CellPos;
7
- boardConfig: ChessBoardConfig;
8
- };
9
- export declare const HoldedFigure: FC<HoldedFigureProps>;
10
- export {};
1
+ import { CellPos, Figure } from '../JSChessEngine';
2
+ import { FC } from 'react';
3
+ import { ChessBoardConfig } from './models';
4
+ type HoldedFigureProps = {
5
+ holdedFigure?: Figure;
6
+ grabbingPos: CellPos;
7
+ boardConfig: ChessBoardConfig;
8
+ };
9
+ export declare const HoldedFigure: FC<HoldedFigureProps>;
10
+ export {};
@@ -1,2 +1,2 @@
1
- import { ChessPiecesMap } from "./models";
2
- export declare const CHESS_PIECES_MAP: ChessPiecesMap;
1
+ import { ChessPiecesMap } from './models';
2
+ export declare const CHESS_PIECES_MAP: ChessPiecesMap;
@@ -1,26 +1,26 @@
1
- import { Piece } from "../JSChessEngine";
2
- import { ChessBoardConfig } from "./models";
3
- export declare const DEFAULT_FACTOR_FOR_SIZE_CIRCLE_MARK = 4.6;
4
- export declare const DEFAULT_CIRCLE_MARK_COLOR = "#3697ce";
5
- export declare const DEFAULT_WHITE_CELL_COLOR: string;
6
- export declare const DEFAULT_BLACK_CELL_COLOR: string;
7
- export declare const DEFAULT_SELECTED_CELL_COLOR = "#e3f1fe";
8
- export declare const DEFAULT_SELECTED_CELL_BORDER = "3px solid #6ac2fd";
9
- export declare const DEFAULT_ARROW_COLOR = "#6ac2fd";
10
- export declare const DEFAULT_MARKED_CELL_COLOR = "#3697ce";
11
- export declare const DEFAULT_CHECKED_CELL_COLOR = "#e95b5c";
12
- export declare const DEFAULT_PIECES_MAP: import("./models").ChessPiecesMap;
13
- export declare const DEFAULT_SHOW_MOVES_TRAIL = true;
14
- export declare const DEFAULT_HIDE_PIECES_HANDLER: (figure: Piece, boardSize?: number) => void;
15
- export declare const DEFAULT_SQUARE_SIZE = 92;
16
- export declare const DEFAULT_PIECE_SIZE_PERCENT = 80;
17
- export declare const DEFAULT_HIDE_PIECE_EFFECT_CLASS_NAME: string;
18
- export declare const DEFAULT_LIGHT_SQUARE_CLASS_NAME: string;
19
- export declare const DEFAULT_DARK_SQUARE_CLASS_NAME: string;
20
- export declare const DEFAULT_PICKED_SQUARE_CLASS_NAME: string;
21
- export declare const DEFAULT_CHECKED_SQUARE_CLASS_NAME: string;
22
- export declare const DEFAULT_SQUARE_HIGLIGHT_CLASS_NAME: string;
23
- export declare const DEFAULT_SELECTED_SQUARE_CLASS_NAME: string;
24
- export declare const DEFAULT_HOLDED_PIECE_CLASS_NAME: string;
25
- export declare const DEFAULT_POSSIBLE_MOVE_MARK_CLASS_NAME: string;
26
- export declare const DEFAULT_CHESSBORD_CONFIG: ChessBoardConfig;
1
+ import { Piece } from '../JSChessEngine';
2
+ import { ChessBoardConfig } from './models';
3
+ export declare const DEFAULT_FACTOR_FOR_SIZE_CIRCLE_MARK = 4.6;
4
+ export declare const DEFAULT_CIRCLE_MARK_COLOR = "#3697ce";
5
+ export declare const DEFAULT_WHITE_CELL_COLOR: string;
6
+ export declare const DEFAULT_BLACK_CELL_COLOR: string;
7
+ export declare const DEFAULT_SELECTED_CELL_COLOR = "#e3f1fe";
8
+ export declare const DEFAULT_SELECTED_CELL_BORDER = "3px solid #6ac2fd";
9
+ export declare const DEFAULT_ARROW_COLOR = "#6ac2fd";
10
+ export declare const DEFAULT_MARKED_CELL_COLOR = "#3697ce";
11
+ export declare const DEFAULT_CHECKED_CELL_COLOR = "#e95b5c";
12
+ export declare const DEFAULT_PIECES_MAP: import('./models').ChessPiecesMap;
13
+ export declare const DEFAULT_SHOW_MOVES_TRAIL = true;
14
+ export declare const DEFAULT_HIDE_PIECES_HANDLER: (figure: Piece, boardSize?: number) => void;
15
+ export declare const DEFAULT_SQUARE_SIZE = 92;
16
+ export declare const DEFAULT_PIECE_SIZE_PERCENT = 80;
17
+ export declare const DEFAULT_HIDE_PIECE_EFFECT_CLASS_NAME: string;
18
+ export declare const DEFAULT_LIGHT_SQUARE_CLASS_NAME: string;
19
+ export declare const DEFAULT_DARK_SQUARE_CLASS_NAME: string;
20
+ export declare const DEFAULT_PICKED_SQUARE_CLASS_NAME: string;
21
+ export declare const DEFAULT_CHECKED_SQUARE_CLASS_NAME: string;
22
+ export declare const DEFAULT_SQUARE_HIGLIGHT_CLASS_NAME: string;
23
+ export declare const DEFAULT_SELECTED_SQUARE_CLASS_NAME: string;
24
+ export declare const DEFAULT_HOLDED_PIECE_CLASS_NAME: string;
25
+ export declare const DEFAULT_POSSIBLE_MOVE_MARK_CLASS_NAME: string;
26
+ export declare const DEFAULT_CHESSBORD_CONFIG: ChessBoardConfig;
@@ -1 +1 @@
1
- export * from './ChessBoard';
1
+ export * from './ChessBoard';
@@ -0,0 +1,39 @@
1
+ import { ReactElement } from 'react';
2
+ import { SquarePos, Piece, MoveData, Cell, CellPos, FigureColor } from '../JSChessEngine';
3
+ export interface ChessPiecesMap {
4
+ [key: string]: (size: string) => ReactElement;
5
+ }
6
+ export type ChessBoardConfig = {
7
+ squareSize: number;
8
+ pieceSizePercent: number;
9
+ lightSquareClassName: string;
10
+ darkSquareClassName: string;
11
+ pickedSquareClassName: string;
12
+ checkedSquareClassName: string;
13
+ hidePieceEffectClassName: string;
14
+ squareHighlightClassName: string;
15
+ selectedSquareClassName: string;
16
+ holdedPieceClassName: string;
17
+ possibleMoveMarkClassName: string;
18
+ factorForSizeCircleMark: number;
19
+ circleMarkColor: string;
20
+ arrowColor: string;
21
+ piecesMap: ChessPiecesMap;
22
+ showMovesTrail: boolean;
23
+ onHidePieces: (piece: Piece) => void;
24
+ };
25
+ export type ChangeMove = {
26
+ move: MoveData;
27
+ withTransition?: boolean;
28
+ attackedPos?: SquarePos;
29
+ transformTo?: Piece;
30
+ };
31
+ export type ArrowCoords = {
32
+ start: number[];
33
+ end: number[];
34
+ };
35
+ export type ClickData = {
36
+ cellData: Cell;
37
+ pos: CellPos;
38
+ currentColor: FigureColor;
39
+ };
@@ -1,64 +1,63 @@
1
- /// <reference types="react" />
2
- import { Cell, CellPos, Figure, FigureColor, GameResult, MoveData } from "../JSChessEngine";
3
- import { ArrowCoords, ChangeMove, ChessBoardConfig, ClickData } from "./models";
4
- declare type UseChessBoardInteractiveProps = {
5
- config?: Partial<ChessBoardConfig>;
6
- onChange: (moveData: MoveData) => void;
7
- onEndGame: (result: GameResult) => void;
8
- onClickByChessBoard?: (data: ClickData) => void;
9
- toggleTurn?: boolean;
10
- };
11
- export declare const useChessBoardInteractive: (props: UseChessBoardInteractiveProps) => {
12
- fromPos: CellPos;
13
- newMove: ChangeMove;
14
- animated: boolean;
15
- movesTrail: [CellPos, CellPos];
16
- invalidFEN: boolean;
17
- boardConfig: ChessBoardConfig;
18
- markedCells: CellPos[];
19
- grabbingPos: CellPos;
20
- actualState: Cell[][];
21
- currentColor: FigureColor;
22
- arrowsCoords: ArrowCoords[];
23
- initialState: Cell[][];
24
- holdedFigure: Figure;
25
- grabbingCell: CellPos;
26
- possibleMoves: CellPos[];
27
- linesWithCheck: CellPos[][];
28
- startArrowCoord: CellPos;
29
- showFigurePicker: boolean;
30
- markCell: (cellPos: CellPos) => void;
31
- setNewMove: import("react").Dispatch<import("react").SetStateAction<ChangeMove>>;
32
- setAnimated: import("react").Dispatch<import("react").SetStateAction<boolean>>;
33
- handleClick: (cellPos: CellPos, viewOnly?: boolean) => void;
34
- clearFromPos: () => void;
35
- handleGrabEnd: (cellPos: CellPos, withTransition?: boolean) => void;
36
- setInvalidFEN: import("react").Dispatch<import("react").SetStateAction<boolean>>;
37
- handleGrabbing: (x: number, y: number) => void;
38
- endRenderArrow: ([x, y]: CellPos) => void;
39
- setActualState: import("react").Dispatch<import("react").SetStateAction<Cell[][]>>;
40
- setPlayerColor: import("react").Dispatch<import("react").SetStateAction<FigureColor>>;
41
- setCurrentColor: import("react").Dispatch<import("react").SetStateAction<FigureColor>>;
42
- handleUpdateFEN: (FEN: string, reversed: boolean) => void;
43
- selectClickFrom: (cellPos: CellPos) => void;
44
- selectHoverFrom: (cellPos: CellPos) => void;
45
- setInitialState: import("react").Dispatch<import("react").SetStateAction<Cell[][]>>;
46
- setBoardReversed: import("react").Dispatch<import("react").SetStateAction<boolean>>;
47
- startRenderArrow: (pos: CellPos) => void;
48
- setLinesWithCheck: import("react").Dispatch<import("react").SetStateAction<CellPos[][]>>;
49
- cleanAllForFigure: () => void;
50
- reverseChessBoard: () => void;
51
- handleGrabbingCell: (cellPos: CellPos) => void;
52
- moveFigureByChange: (change: ChangeMove) => void;
53
- getHasCheckByCellPos: ([x, y]: CellPos) => boolean;
54
- handleSelectFigurePicker: (figure: Figure) => void;
55
- handleChangeFromExternal: (moveData: MoveData, withTransition?: boolean) => void;
56
- moveFigureByExternalChange: (from: CellPos, to: CellPos, figure: Figure) => {
57
- moveData?: undefined;
58
- attackedPos?: undefined;
59
- } | {
60
- moveData: MoveData;
61
- attackedPos: CellPos;
62
- };
63
- };
64
- export {};
1
+ import { Cell, CellPos, Figure, FigureColor, GameResult, MoveData } from '../JSChessEngine';
2
+ import { ArrowCoords, ChangeMove, ChessBoardConfig, ClickData } from './models';
3
+ type UseChessBoardInteractiveProps = {
4
+ config?: Partial<ChessBoardConfig>;
5
+ onChange: (moveData: MoveData) => void;
6
+ onEndGame: (result: GameResult) => void;
7
+ onClickByChessBoard?: (data: ClickData) => void;
8
+ toggleTurn?: boolean;
9
+ };
10
+ export declare const useChessBoardInteractive: (props: UseChessBoardInteractiveProps) => {
11
+ fromPos: CellPos;
12
+ newMove: ChangeMove;
13
+ animated: boolean;
14
+ movesTrail: [CellPos, CellPos];
15
+ invalidFEN: boolean;
16
+ boardConfig: ChessBoardConfig;
17
+ markedCells: CellPos[];
18
+ grabbingPos: CellPos;
19
+ actualState: Cell[][];
20
+ currentColor: FigureColor;
21
+ arrowsCoords: ArrowCoords[];
22
+ initialState: Cell[][];
23
+ holdedFigure: Figure;
24
+ grabbingCell: CellPos;
25
+ possibleMoves: CellPos[];
26
+ linesWithCheck: CellPos[][];
27
+ startArrowCoord: CellPos;
28
+ showFigurePicker: boolean;
29
+ markCell: (cellPos: CellPos) => void;
30
+ setNewMove: import('react').Dispatch<import('react').SetStateAction<ChangeMove>>;
31
+ setAnimated: import('react').Dispatch<import('react').SetStateAction<boolean>>;
32
+ handleClick: (cellPos: CellPos, viewOnly?: boolean) => void;
33
+ clearFromPos: () => void;
34
+ handleGrabEnd: (cellPos: CellPos, withTransition?: boolean) => void;
35
+ setInvalidFEN: import('react').Dispatch<import('react').SetStateAction<boolean>>;
36
+ handleGrabbing: (x: number, y: number) => void;
37
+ endRenderArrow: ([x, y]: CellPos) => void;
38
+ setActualState: import('react').Dispatch<import('react').SetStateAction<Cell[][]>>;
39
+ setPlayerColor: import('react').Dispatch<import('react').SetStateAction<FigureColor>>;
40
+ setCurrentColor: import('react').Dispatch<import('react').SetStateAction<FigureColor>>;
41
+ handleUpdateFEN: (FEN: string, reversed: boolean) => void;
42
+ selectClickFrom: (cellPos: CellPos) => void;
43
+ selectHoverFrom: (cellPos: CellPos) => void;
44
+ setInitialState: import('react').Dispatch<import('react').SetStateAction<Cell[][]>>;
45
+ setBoardReversed: import('react').Dispatch<import('react').SetStateAction<boolean>>;
46
+ startRenderArrow: (pos: CellPos) => void;
47
+ setLinesWithCheck: import('react').Dispatch<import('react').SetStateAction<CellPos[][]>>;
48
+ cleanAllForFigure: () => void;
49
+ reverseChessBoard: () => void;
50
+ handleGrabbingCell: (cellPos: CellPos) => void;
51
+ moveFigureByChange: (change: ChangeMove) => void;
52
+ getHasCheckByCellPos: ([x, y]: CellPos) => boolean;
53
+ handleSelectFigurePicker: (figure: Figure) => void;
54
+ handleChangeFromExternal: (moveData: MoveData, withTransition?: boolean) => void;
55
+ moveFigureByExternalChange: (from: CellPos, to: CellPos, figure: Figure) => {
56
+ moveData?: undefined;
57
+ attackedPos?: undefined;
58
+ } | {
59
+ moveData: MoveData;
60
+ attackedPos: CellPos;
61
+ };
62
+ };
63
+ export {};