import { Colors, Squares, Directions } from '../types/Types'; export declare namespace Square { const NullSquare: Squares.Empty; function isFyle(f?: number): f is Squares.Fyle; function isRank(r?: number): r is Squares.Rank; function isSquare(sq?: number): sq is Squares.Square; function notEmpty(sq?: Squares.Square): Squares.Square; function fyle(sq: Squares.Square): Squares.Fyle; function rank(sq: Squares.Square): Squares.Rank; function create(f: Squares.Fyle, r: Squares.Rank): Squares.Square; function rankFromChar(c: string): Squares.Rank | undefined; function fyleFromChar(c: string): Squares.Fyle | undefined; function leftDiag(sq: Squares.Square): number; function rightDiag(sq: Squares.Square): number; function color(sq: Squares.Square): Colors.BW; function colorChar(sq: Squares.Square): Colors.Char; function rankChar(sq: Squares.Square): string; function fyleChar(sq: Squares.Square): string; function parse(sq: string): 0 | 2 | 1 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | undefined; function name(s: Squares.Square): string; /** * returns true if the two squares are adjacent. * Note that diagonal adjacency is included: a1 and b2 are adjacent. * Also note that a square is adjacent to itself. */ function adjacent(from: Squares.Square, to: Squares.Square): boolean; /** * Get direction for move from square @fr to square @to. */ function direction(fr: Squares.Square, to: Squares.Square): Directions.Direction; function move(sq: Squares.Square, dir: Directions.Direction): 0 | 2 | 1 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | undefined; function last(sq: Squares.Square, dir: Directions.Direction): 0 | 2 | 1 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | undefined; function isKnightHop(from: Squares.Square, to: Squares.Square): boolean; function knightAttack(from: Squares.Square, to: Squares.Square): Squares.Square | Squares.Empty; function knightAttacks(from: Squares.Square): (Squares.Square | Squares.Empty)[]; function kingAttack(from: Squares.Square, to: Squares.Square): Squares.Square | Squares.Empty; function kingAttacks(from: Squares.Square): (Squares.Square | Squares.Empty)[]; }