/* eslint-disable no-undef */ import type { ChessInstance, Square } from 'chess.js'; type Player = ReturnType; type Type = 'q' | 'r' | 'n' | 'b' | 'k' | 'p'; type PieceType = `${Player}${Type}`; type PiecesType = Record>; type Vector = { x: T; y: T; }; type ChessMove = { from: Square; to: Square; }; type MoveType = { from: Square; to: Square }; export type { Player, Type, PieceType, PiecesType, Vector, ChessMove, MoveType, };