import * as cg from 'chessgroundx/types'; import { PromotionSuffix } from './chess'; import { GameController } from './gameCtrl'; declare type PromotionChoices = Partial>; export declare class Promotion { ctrl: GameController; promoting: { orig: cg.Key; dest: cg.Key; } | null; choices: PromotionChoices; constructor(ctrl: GameController); start(movingRole: cg.Role, orig: cg.Key, dest: cg.Key, disableAutoPromote?: boolean): boolean; private promotionFilter; private canPromote; private promotionChoices; private isMandatoryPromotion; private promote; private drawPromo; private drawNoPromo; private finish; private cancel; private view; } export {};