import { TmaPlatform } from "./url"; /** * Returns true if the app is running in TMA on the specified platform. * @param platforms */ export declare function isTmaPlatform(...platforms: TmaPlatform[]): boolean; /** * Returns true if the app is running in TMA. */ export declare function isInTMA(): boolean; export declare function inTg(): boolean; /** * Returns true if the app is running in the Telegram browser. */ export declare function isInTelegramBrowser(): boolean; /** * Expand the app window. */ export declare function sendExpand(): void; /** * Opens link in TMA or in new tab and returns a function that closes the tab. * @param link The link to open. * @param fallback The function to call if the link can't be opened in TMA. */ export declare function sendOpenTelegramLink(link: string, fallback?: () => void): void; export declare function versionCompare(v1: string | undefined, v2: string | undefined): 0 | 1 | -1;