// Core types export class Jump { constructor(path: string); text: string | null; path: string; getText(): string | null; setText(text: string): this; getPath(): string; setPath(path: string): this; toMap(): Record; } export class Navigate { constructor(screen: string, params?: Record); text: string | null; screen: string; params: Record; getText(): string | null; setText(text: string): this; getScreen(): string; setScreen(screen: string): this; getParams(): Record; setParams(params: Record): this; toMap(): Record; } export class Replace extends Navigate { constructor(screen: string, params?: Record); } export class Goback { constructor(); text: string | null; getText(): string | null; setText(text: string): this; toMap(): Record; } export class OpenGiftPopupCallback { constructor(); id: number | null; type: string | null; count: number | null; getId(): number | null; setId(id: number): this; getType(): string | null; setType(type: string): this; getCount(): number | null; setCount(count: number): this; toMap(): Record; } export class OpenGameCallback { constructor(); id: number | null; getId(): number | null; setId(id: number): this; toMap(): Record; } export class OpenActivityCallback { constructor(); id: string | null; getId(): string | null; setId(id: string): this; toMap(): Record; } export class SwitchRoomTypeCallback { constructor(); type: string | null; getType(): string | null; setType(type: string): this; toMap(): Record; } export const CallbackType: { OPEN_GIFT_POPUP: 'open_gift_popup'; OPEN_GAME: 'open_game'; OPEN_ACTIVITY: 'open_activity'; SWITCH_ROOM_TYPE: 'switch_room_type'; }; export class EnterRoom { constructor(); text: string | null; id: number | null; match: string | null; callbacks: Record | null; useReplace: boolean | null; static CallbackType: typeof CallbackType; static OpenGiftPopupCallback: typeof OpenGiftPopupCallback; static OpenGameCallback: typeof OpenGameCallback; static OpenActivityCallback: typeof OpenActivityCallback; static SwitchRoomTypeCallback: typeof SwitchRoomTypeCallback; getText(): string | null; setText(text: string): this; getId(): number | null; setId(id: number): this; getMatch(): string | null; setMatch(match: string): this; getUseReplace(): boolean | null; setUseReplace(useReplace: boolean): this; addOpenGiftPopupCallback(cb: OpenGiftPopupCallback): this; addOpenGameCallback(cb: OpenGameCallback): this; addOpenActivityCallback(cb: OpenActivityCallback): this; addSwitchRoomTypeCallback(cb: SwitchRoomTypeCallback): this; toMap(): Record; } export class LiveDetect { constructor(); text: string | null; getText(): string | null; setText(text: string): this; toMap(): Record; } export class Onelink { constructor(url?: string); text: string | null; url: string | null; share: boolean | null; getText(): string | null; setText(text: string): this; getUrl(): string | null; setUrl(url: string): this; getShare(): boolean | null; setShare(share: boolean): this; toMap(): Record; } export class AgencyInfo { id: string | null; name: string | null; ownerId: string | null; ownerName: string | null; ownerAvatar: string | null; getId(): string | null; setId(id: string): this; getName(): string | null; setName(name: string): this; getOwnerId(): string | null; setOwnerId(ownerId: string): this; getOwnerName(): string | null; setOwnerName(ownerName: string): this; getOwnerAvatar(): string | null; setOwnerAvatar(ownerAvatar: string): this; toMap(): Record; } export const AgencyInviteType: { TO_BE_MEMBER: 'to_be_member'; TO_BE_SUBAGENCY: 'to_be_subagency'; }; export class AgencyInvite { constructor(id: number, type: string); text: string | null; id: number; type: string; title: string | null; message: string | null; agencyInfo: AgencyInfo | null; accepted: boolean | null; static AgencyInfo: typeof AgencyInfo; static AgencyInviteType: typeof AgencyInviteType; getText(): string | null; setText(text: string): this; getId(): number; setId(id: number): this; getType(): string; setType(type: string): this; getTitle(): string | null; setTitle(title: string): this; getMessage(): string | null; setMessage(message: string): this; getAgencyInfo(): AgencyInfo | null; setAgencyInfo(agencyInfo: AgencyInfo): this; getAccepted(): boolean | null; setAccepted(accepted: boolean): this; toMap(): Record; } export class Recharge { constructor(); text: string | null; getText(): string | null; setText(text: string): this; toMap(): Record; } export class Close { constructor(); text: string | null; getText(): string | null; setText(text: string): this; toMap(): Record; } export const ConfigTheme: { DARK: 'dark'; LIGHT: 'light'; }; export class Config { constructor(); text: string | null; theme: 'dark' | 'light' | null; brandColor: string | null; tintColor: string | null; title: string | null; static Theme: typeof ConfigTheme; getText(): string | null; setText(text: string): this; getTheme(): 'dark' | 'light' | null; setTheme(theme: 'dark' | 'light'): this; getBrandColor(): string | null; setBrandColor(brandColor: string): this; getTintColor(): string | null; setTintColor(tintColor: string): this; getTitle(): string | null; setTitle(title: string): this; toMap(): Record; } export class Track { constructor(name: string); text: string | null; name: string; params: Record | null; options: Record | null; getText(): string | null; setText(text: string): this; getName(): string; setName(name: string): this; getParams(): Record | null; setParams(params: Record): this; getOptions(): Record | null; setOptions(options: Record): this; toMap(): Record; } export class GrantBenefitsTheme { constructor(); image: string | null; tintColor: string | null; buttonImage: string | null; topInset: number | null; getImage(): string | null; setImage(image: string): this; getTintColor(): string | null; setTintColor(tintColor: string): this; getButtonImage(): string | null; setButtonImage(buttonImage: string): this; getTopInset(): number | null; setTopInset(topInset: number): this; toMap(): Record; } export class GrantBenefits { constructor(benefits: any[]); text: string | null; benefits: any[]; title: string | null; message: string | null; okAction: Action | null; closeable: boolean | null; duration: number | null; theme: GrantBenefitsTheme | null; static Theme: typeof GrantBenefitsTheme; getText(): string | null; setText(text: string): this; getBenefits(): any[]; setBenefits(benefits: any[]): this; getTitle(): string | null; setTitle(title: string): this; getMessage(): string | null; setMessage(message: string): this; getOkAction(): Action | null; setOkAction(okAction: Action): this; getCloseable(): boolean | null; setCloseable(closeable: boolean): this; getDuration(): number | null; setDuration(duration: number): this; getTheme(): GrantBenefitsTheme | null; setTheme(theme: GrantBenefitsTheme): this; toMap(): Record; } export class Action { constructor(type: ActionTypeValue, data: any); type: ActionTypeValue; data: any; messageId: string | null; getType(): ActionTypeValue; setType(type: ActionTypeValue): this; getData(): any; setData(data: any): this; setBaseData(text: string): this; toJson(): string; } export type ActionTypeValue = 'jump' | 'navigate' | 'replace' | 'goback' | 'enter_room' | 'live_detect' | 'onelink' | 'agency_invite' | 'recharge' | 'close' | 'config' | 'track' | 'grant_benefits'; export const ActionType: { JUMP: 'jump'; NAVIGATE: 'navigate'; REPLACE: 'replace'; GOBACK: 'goback'; ENTER_ROOM: 'enter_room'; LIVE_DETECT: 'live_detect'; ONELINK: 'onelink'; AGENCY_INVITE: 'agency_invite'; RECHARGE: 'recharge'; CLOSE: 'close'; CONFIG: 'config'; TRACK: 'track'; GRANT_BENEFITS: 'grant_benefits'; }; export const ActionData: { Jump: typeof Jump; Navigate: typeof Navigate; Replace: typeof Replace; Goback: typeof Goback; EnterRoom: typeof EnterRoom; LiveDetect: typeof LiveDetect; Onelink: typeof Onelink; AgencyInvite: typeof AgencyInvite; Recharge: typeof Recharge; Close: typeof Close; Config: typeof Config; Track: typeof Track; GrantBenefits: typeof GrantBenefits; }; export const ActionCreator: { ActionData: typeof ActionData; ActionType: typeof ActionType; buildJump(path: string): Jump; createJumpAction(path: string): Action; createJumpActionWithData(jump: Jump): Action; buildNavigate(screen: string, params?: Record): Navigate; createNavigateAction(screen: string): Action; createNavigateActionWithParams(screen: string, params: Record): Action; createNavigateActionWithData(navigate: Navigate): Action; buildReplace(screen: string, params?: Record): Replace; createReplaceAction(screen: string): Action; createReplaceActionWithParams(screen: string, params: Record): Action; createReplaceActionWithData(replace: Replace): Action; buildGoback(): Goback; createGobackAction(): Action; createGobackActionWithData(goback: Goback): Action; buildEnterRoom(): EnterRoom; createEnterRoomAction(id: string): Action; createEnterRoomActionWithData(enterRoom: EnterRoom): Action; buildLiveDetect(): LiveDetect; createLiveDetectAction(): Action; createLiveDetectActionWithData(liveDetect: LiveDetect): Action; buildOnelink(url: string): Onelink; createOnelinkAction(url: string): Action; createOnelinkActionWithData(onelink: Onelink): Action; buildAgencyInvite(id: number, type: string): AgencyInvite; createAgencyInviteAction(id: number, type: string): Action; createAgencyInviteActionWithData(agencyInvite: AgencyInvite): Action; buildRecharge(): Recharge; createRechargeAction(): Action; createRechargeActionWithData(recharge: Recharge): Action; buildClose(): Close; createCloseAction(): Action; createCloseActionWithData(close: Close): Action; buildConfig(): Config; createConfigAction(): Action; createConfigActionWithData(config: Config): Action; buildTrack(name: string): Track; createTrackAction(name: string): Action; createTrackActionWithData(track: Track): Action; buildGrantBenefits(benefits: any[]): GrantBenefits; createGrantBenefitsAction(benefits: any[]): Action; createGrantBenefitsActionWithData(grantBenefits: GrantBenefits): Action; };