export declare enum DeepLinkType { CUSTOM_SCHEME = "custom_scheme", UNIVERSAL_LINK = "universal_link", APP_LINK = "app_link", HTTP_LINK = "http_link" } /** * Helper class to automatically detect and handle deeplinks * * Supports multiple link types: * 1. Custom URL Schemes: myapp://product/123 * 2. Universal Links (iOS): https://my-site.com/product/123 * 3. App Links (Android): https://my-site.com/product/123 * 4. HTTP Links: http://my-site.com/product/123 * * Common use cases: * - Ad clicks (Facebook, Google, TikTok ads with http/https URLs) * - Push notification deep links * - Email marketing links * - SMS campaign links * - QR codes */ export declare class DeepLinkHelper { private static listener; private static onDeepLinkCallback; /** * Determine the type of deeplink * @param url The URL to analyze * @returns The type of deeplink */ static getLinkType(url: string): DeepLinkType; /** * Initialize deeplink detection * - Checks if app was opened with initial URL (custom scheme, universal link, or HTTP link) * - Sets up listener for deeplinks while app is running * @param callback Optional callback to be notified when deeplink is detected * @returns The initial URL if app was opened with deeplink, null otherwise */ static initialize(callback?: (url: string, linkType: DeepLinkType) => void): Promise; /** * Set up listener for deeplinks received while app is running * Works for all link types: custom schemes, universal links, app links, HTTP links */ private static setupListener; /** * Handle deeplink URL - notify callback if registered * @param url The deeplink URL */ private static handleDeepLink; /** * Remove deeplink listener and clear callback */ static cleanup(): void; /** * Parse UTM parameters and other campaign data from URL * @param url The deeplink URL * @returns Object containing campaign parameters */ static parseCampaignParams(url: string): Record; }