import { UIViewID } from '@scripts/define/UIDefine'; import type { HallCallClientMessage, HallMessage, HallPayFinishMessage, } from '../services/hall/HallClient'; export interface AppEventMap { 'launch:completed': undefined, 'network:changed': boolean; 'login:success': undefined, 'game:entered': undefined; 'game:exited': { gameId: string; reason: string }; 'app:pause': undefined; 'app:resume': undefined; 'hall:connected': undefined; 'hall:disconnected': { code?: number }; 'hall:timeout': undefined; 'hall:kicked': HallMessage; 'hall:pay-finished': HallPayFinishMessage; 'hall:call-client': HallCallClientMessage; 'user:update': undefined, 'firstPack:update': undefined, 'open:ui-view': UIViewID, 'close:ui-view': UIViewID, }