import * as PIXI from 'pixi.js-legacy'; import { HPStatsView } from './StatsView'; import GameV2 from './GameV2'; import { DeepEvent } from './Event'; declare type Dir = "down" | "right"; declare type Transition = [number, number, Dir]; declare abstract class Menu { protected game: GameV2; state: number; protected states: number; private arrowPos; private machine; protected arrowSpr: PIXI.Sprite; protected stage: PIXI.Container; private touchContainers; private showing; constructor(game: GameV2, trans: Transition[], arrowPos: [number, number][], onStateChange?: () => void, touchAreas?: (PIXI.Rectangle | undefined)[]); reset(trans: [number, number, Dir][], arrowPos: [number, number][], onStateChange: () => void): void; compose(s: number, g: () => void): void; update(): void; listen(): void; show(): void; hide(): void; abstract _show(): void; abstract _hide(): void; selectMessage(text: string[]): void; continue(): void; } declare class Options extends Menu { private menuSpr; constructor(game: GameV2); _show(): void; _hide(): void; } declare class Moves extends Menu { private movesSpr; private type; private pp; private maxPp; private moves; private stateToSimulatedIndex; constructor(game: GameV2, moves: string[], state: number); listen(): void; updateMoveInfo(): void; _show(): void; _hide(): void; } declare class SwitchStats extends Menu { private index; private switchstatsSpr; constructor(game: GameV2, index: number); listen(): void; _show(): void; _hide(): void; } declare abstract class TeamView extends Menu { private message; private canCancel; private iconSpr?; private fntText?; stats?: HPStatsView[]; private cancelTxt?; private messageSpr; private messageTxt; constructor(game: GameV2, message: string, canCancel?: boolean); private generateGraphics; exit(then?: DeepEvent): void; _jumpRate(i: number): [number, number]; _animRate(i: number): [number, number]; update(): void; protected deny(): void; listen(): void; protected abstract handle(): void; _show(): void; _hide(): void; } declare class SwitchoutTeamView extends TeamView { private roar; constructor(game: GameV2, canCancel?: boolean, roar?: boolean); handle(): void; } declare class GeneralTeamView extends TeamView { constructor(game: GameV2); handle(): void; continue(): void; } export { Menu, Options, Moves, SwitchStats, SwitchoutTeamView, GeneralTeamView, TeamView };