import { ConfigPlugin } from '@expo/config-plugins'; import { PluginConfigType } from '../pluginConfig'; export declare const generatedTag = "@react-native-firebase/auth-openURL"; /** * Warm-path contract for the SceneDelegate reCAPTCHA patch. * * Firebase Auth presents reCAPTCHA in an in-app `SFSafariViewController` / auth session while the * app is already running, then returns via a custom-scheme URL. Upstream documents and samples * handle that return only in `scene(_:openURLContexts:)` (see Firebase phone-auth appendix and the * Auth quickstart `SceneDelegate`); they do not route Auth reCAPTCHA through * `scene(_:willConnectTo:options:)`. A cold start would also drop Auth's in-memory pending * verification, so this plugin intentionally patches the warm path only. */ export declare const sceneDelegateWarmPathContract: { readonly handlesOpenURLContexts: true; readonly handlesWillConnectTo: false; readonly evidence: readonly ["https://firebase.google.com/docs/auth/ios/phone-auth#appendix:-using-phone-sign-in-without-swizzling", "https://github.com/firebase/quickstart-ios/blob/main/authentication/AuthenticationExample/SceneDelegate.swift"]; }; export declare const sceneDelegateFirebaseAuthImport = "import FirebaseAuth"; export declare const sceneDelegateOpenUrlBlock: string; /** * Add an `openURLContexts` override that lets Firebase Auth handle reCAPTCHA redirects, then * forwards only unhandled contexts to `super` (Expo Router / RCTLinkingManager). * * Returns the modified contents, or null when the patch does not apply (already present, or the * file is not a recognizable `SceneDelegate` subclass). */ export declare function modifySceneDelegate(contents: string): string | null; /** * Applies the reCAPTCHA `openURL` fix to `SceneDelegate.swift` on projects that use the UIScene * life cycle. On projects that still use the app-delegate life cycle this is a no-op, the * `withIosCaptchaOpenUrlFix` plugin handles those. */ export declare const withIosCaptchaSceneDelegateFix: ConfigPlugin;