import { ChessInstance, Square, Move } from "chess.js"; import { IChessboardSyncMethods } from "./interfaces"; /** * Contains methods that doesn't affect game state and not meant to be synchronized */ declare abstract class ChessInstanceWrapper implements IChessboardSyncMethods { protected chessJSInstance: ChessInstance; ascii(): string; board(): { type: import("chess.js").PieceType; color: "b" | "w"; }[][]; fen(): string; game_over(): boolean; get(square: Square): import("chess.js").Piece; in_check(): boolean; in_checkmate(): boolean; in_draw(): boolean; in_stalemate(): boolean; in_threefold_repetition(): boolean; insufficient_material(): boolean; moves(options: { verbose: true; square?: string; }): Move[]; moves(options?: { verbose?: false; square?: string; }): string[]; history(options?: { verbose?: false; }): string[]; history(options: { verbose: true; }): Move[]; turn(): "b" | "w"; validate_fen(fen: string): { valid: boolean; error_number: number; error: string; }; pgn(options?: { max_width?: number; newline_char?: string; }): string; square_color(square: Square): "light" | "dark"; readonly SQUARES: [ 'a8', 'b8', 'c8', 'd8', 'e8', 'f8', 'g8', 'h8', 'a7', 'b7', 'c7', 'd7', 'e7', 'f7', 'g7', 'h7', 'a6', 'b6', 'c6', 'd6', 'e6', 'f6', 'g6', 'h6', 'a5', 'b5', 'c5', 'd5', 'e5', 'f5', 'g5', 'h5', 'a4', 'b4', 'c4', 'd4', 'e4', 'f4', 'g4', 'h4', 'a3', 'b3', 'c3', 'd3', 'e3', 'f3', 'g3', 'h3', 'a2', 'b2', 'c2', 'd2', 'e2', 'f2', 'g2', 'h2', 'a1', 'b1', 'c1', 'd1', 'e1', 'f1', 'g1', 'h1' ]; readonly WHITE = "w"; readonly BLACK = "b"; readonly PAWN = "p"; readonly KNIGHT = "n"; readonly BISHOP = "b"; readonly ROOK = "r"; readonly QUEEN = "q"; readonly KING = "k"; readonly FLAGS: { NORMAL: 'n'; CAPTURE: 'c'; BIG_PAWN: 'b'; EP_CAPTURE: 'e'; PROMOTION: 'p'; KSIDE_CASTLE: 'k'; QSIDE_CASTLE: 'q'; }; get_headers(): { [key: string]: string; }; } export default ChessInstanceWrapper; //# sourceMappingURL=chessWrapperBase.d.ts.map