@dfsol/platform-detector
Version:
Universal platform detector for web, PWA, TWA, Telegram Mini Apps, Capacitor.js, and native mobile applications with @tma.js SDK support
18 lines • 543 B
TypeScript
/**
* Telegram SDK loading utilities
*/
/**
* Check if we should load Telegram SDK based on URL hints
* Uses strict checks to avoid false positives in regular browsers
*/
export declare function shouldLoadTelegramSDK(): boolean;
/**
* Dynamically load Telegram Web App SDK
* Returns a promise that resolves when SDK is loaded
*/
export declare function loadTelegramSDK(): Promise<boolean>;
/**
* Get Telegram WebApp instance if available
*/
export declare function getTelegramWebApp(): any;
//# sourceMappingURL=telegram-sdk.d.ts.map