UNPKG

@dfsol/platform-detector

Version:

Universal platform detector for web, PWA, Telegram Mini Apps, and native mobile applications with Client Hints API, feature detection, and enhanced accuracy

18 lines 543 B
/** * 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