import { Square } from './index'; /** * Details of an arrow to be drawn. */ export declare class Arrow { /** Start square of the arrow. */ tail: Square; /** End square of the arrow. */ head: Square; /** Arrow color. */ color: string; constructor(tail: Square, head: Square, { color }?: { color?: string; }); /** * Returns the arrow in the format used by ``[%csl ...]`` and * ``[%cal ...]`` PGN annotations, e.g., ``Ga1`` or ``Ya2h2``. * * Colors other than ``red``, ``yellow``, and ``blue`` default to green. */ pgn(): string; toString(): string; toRepr(): string; /** * Parses an arrow from the format used by ``[%csl ...]`` and * ``[%cal ...]`` PGN annotations, e.g., ``Ga1`` or ``Ya2h2``. * * Also allows skipping the color prefix, defaulting to green. * * :raises: :exc:`ValueError` if the format is invalid. */ static fromPgn(pgn: string): Arrow; } declare const _default: { Arrow: typeof Arrow; }; export default _default; //# sourceMappingURL=svg.d.ts.map