UNPKG

shogiground

Version:
8 lines 808 B
import type * as sg from './types.js'; export declare function inferDimensions(boardSfen: sg.BoardSfen): sg.Dimensions; export declare function sfenToBoard(sfen: sg.BoardSfen, dims: sg.Dimensions, fromForsyth?: (forsyth: string) => sg.RoleString | undefined): sg.Pieces; export declare function boardToSfen(pieces: sg.Pieces, dims: sg.Dimensions, toForsyth?: (role: sg.RoleString) => string | undefined): sg.BoardSfen; export declare function sfenToHands(sfen: sg.HandsSfen, fromForsyth?: (forsyth: string) => sg.RoleString | undefined): sg.Hands; export declare function handsToSfen(hands: sg.Hands, roles: sg.RoleString[], toForsyth?: (role: sg.RoleString) => string | undefined): sg.HandsSfen; export declare function standardToForsyth(role: string): string | undefined; //# sourceMappingURL=sfen.d.ts.map