import { l as CherryPlatform, h as CherryEnvironment, L as LaunchTokenPayload } from './client-Bi55Q6eQ.js'; interface DetectPlatformOptions { /** * When `true`, only Cherry-injected signals are accepted: * - `window.__cherry` for mobile WebView * - `cherry_embed=1` query parameter for web iframe * * Fallbacks (`ReactNativeWebView`, plain `window.parent !== window`) are * disabled. Use this once all Cherry hosts you target have been updated to * inject the new signals, to eliminate false positives (e.g. wallet * in-app browsers that also run inside a WebView). * * Default: `false` (fallbacks enabled for backward compatibility). */ strict?: boolean; } /** * Detect whether we're running inside Cherry messenger. * * WebView (mobile): * - Primary: `window.__cherry` — injected by Cherry before page loads * - Fallback: `ReactNativeWebView` — present in any RN WebView (for older * Cherry builds that don't inject `__cherry` yet) * Disabled when `strict: true`. * * iframe (web): * - Primary: `cherry_embed=1` query parameter (set by Cherry host) * - Fallback: plain `window.parent !== window` (for older Cherry builds * that don't set the param yet) * Disabled when `strict: true`. * * The fallback paths will be removed in a future major version once all * Cherry hosts are updated. */ declare function detectPlatform(options?: DetectPlatformOptions): CherryPlatform; declare function isInsideCherry(options?: DetectPlatformOptions): boolean; declare function getCherryEnvironment(options?: DetectPlatformOptions): CherryEnvironment; declare function verifyLaunchToken(token: string, options: { jwksUrl?: string; expectedAppId: string; expectedOrigin?: string; }): Promise; export { type DetectPlatformOptions as D, detectPlatform as d, getCherryEnvironment as g, isInsideCherry as i, verifyLaunchToken as v };