import * as React from 'react';
import * as cg from 'chessground/types';
import { Config } from 'chessground/config';
import { BoardSize } from 'onix-board-assets';
export interface BoardProps {
    locale?: string;
    size: BoardSize;
    piece?: string;
    square?: string;
    myColor?: cg.Color;
    turnColor?: number;
    flip?: boolean;
    inPromotion?: boolean;
    board: Config;
}
export interface BoardState {
    inPromotion: boolean;
}
export declare class Chessground extends React.Component<BoardProps, BoardState> {
    static defaultProps: BoardProps;
    private boardElement;
    private cg?;
    constructor(props: BoardProps);
    componentDidMount(): void;
    componentWillUnmount(): void;
    private redrawBoard;
    private renderPromotion;
    render(): JSX.Element;
}
