import { Result } from '@badrap/result'; import { Board } from './board.js'; import { Setup } from './setup.js'; import { Piece } from './types.js'; export declare const INITIAL_BOARD_FEN = "rnbakabnr/9/1c5c1/p1p1p1p1p/9/9/P1P1P1P1P/1C5C1/9/RNBAKABNR"; export declare const INITIAL_EPD: string; export declare const INITIAL_FEN: string; export declare const EMPTY_BOARD_FEN = "9/9/9/9/9/9/9/9/9/9"; export declare const EMPTY_EPD: string; export declare const EMPTY_FEN: string; export declare enum InvalidFen { Fen = "ERR_FEN", Board = "ERR_BOARD", Turn = "ERR_TURN", Halfmoves = "ERR_HALFMOVES", Fullmoves = "ERR_FULLMOVES" } export declare class FenError extends Error { } export declare const parseBoardFen: (boardPart: string) => Result; export declare const parseFen: (fen: string) => Result; export interface FenOpts { epd?: boolean; } export declare const parsePiece: (str: string) => Piece | undefined; export declare const makePiece: (piece: Piece) => string; export declare const makeBoardFen: (board: Board) => string; export declare const makeFen: (setup: Setup, opts?: FenOpts) => string;