import { WebApp } from 'telegram-web-app';
/**
 * Ensures the Telegram WebApp script is loaded.
 * If `window.Telegram.WebApp` already exists (e.g. injected by Telegram client
 * or by the game itself), it is reused as-is.
 * Otherwise, the official script is dynamically loaded from Telegram's CDN.
 */
export declare function ensureTelegramWebApp(): Promise<WebApp>;
/**
 * Synchronous getter for `window.Telegram.WebApp`.
 * Must only be called after `ensureTelegramWebApp()` has resolved.
 */
export declare function getTelegramWebApp(): WebApp;
