import { SquareIndex } from "./square"; import { Piece } from "./piece"; export type Figure = "knight" | "bishop" | "queen" | "rook"; export interface IMove { from: SquareIndex; to: SquareIndex; piece: Piece; targetPiece: Piece; setEnPassant: SquareIndex | null; promotion: Figure | undefined; isPromo: boolean; } export declare function isPromotionMove(piece: Piece, targetPosY: number): boolean;