/** * UAE Pass Mobile Authentication Service * * Self-contained service for UAE Pass authentication * Handles both app-to-app and browser flows */ import type { UAEPassAuthResult, UAEPassWebViewAuthParams } from '../types'; /** * Check if UAE Pass app is installed * Android: Check using native PackageManager * iOS: Check using URL scheme */ export declare const isUAEPassAppInstalled: () => Promise; /** * Prepare authentication parameters for UAE Pass * * When UAE Pass app IS installed: * - Returns useWebView: true * - UI layer should show WebView component * * When UAE Pass app is NOT installed: * - Returns useWebView: false * - Uses browser-based flow */ export declare const prepareUAEPassAuth: () => Promise; /** * Browser-based authentication flow * Used when UAE Pass app is NOT installed */ export declare const authenticateWithUAEPassBrowser: (authUrl: string, state: string, codeVerifier: string) => Promise; /** * Main UAE Pass Authentication Function * * This function handles BOTH flows: * 1. Direct app launch (when UAE Pass app IS installed) * 2. Browser flow (when UAE Pass app is NOT installed) */ export declare const authenticateWithUAEPass: () => Promise; declare const _default: { authenticateWithUAEPass: () => Promise; authenticateWithUAEPassBrowser: (authUrl: string, state: string, codeVerifier: string) => Promise; prepareUAEPassAuth: () => Promise; isUAEPassAppInstalled: () => Promise; }; export default _default;