import { Colors } from '../types/Types'; declare class CastlingStrBrand { private _brand; } export declare type CastlingStr = CastlingStrBrand & string; export declare enum CastlingSide { Queen = 0, King = 1 } /** * Castle */ export declare class Castling { static Q: string; static K: string; static WQ: number; static WK: number; static BQ: number; static BK: number; private flag; constructor(castling?: number | string); get Flag(): number; set Flag(value: number); clone(): Castling; assign(src: Castling): void; clear(): void; any(): boolean; private getMask; /** * Return castling is enabled. */ has(pc: Colors.BW | string, direction?: CastlingSide): boolean; /** * Set castling flag. */ set(color: Colors.BW, direction: CastlingSide, enabled: boolean): void; on(pc: Colors.BW | string, direction?: CastlingSide): void; off(pc: Colors.BW | string, direction?: CastlingSide): void; fromFen(fen: string): boolean; asFen(): CastlingStr; } export {};