/** * The platform frames the game client in its own pages (a game, a tutorial), so that its installed app keeps playing * full screen. The client then asks the hosting page to navigate, instead of navigating its own frame. */ export declare function isFramedByPlatform(): boolean; /** Opens a page of the platform. The page hosting the game navigates to it without reloading, when there is one. */ export declare function goToPlatform(url: string): void; /** The platform page of a game: where to play it, and where to come back after signing in */ export declare function platformGameUrl(gameId: string, locale: string): string; /** Tells the page hosting the client that it now plays another game (a rematch), so that its address follows */ export declare function notifyGameChanged(gameId: string): void; /** * A game opened directly on its subdomain (a link sent before games moved into the platform pages, a bookmark) goes to * its platform page, which frames this client. Neither in local development, nor for the tutorials, which have no game. * Returns whether the page is leaving. */ export declare function redirectToPlatformGamePage(): boolean;