import { ComponentType, ComponentPropsWithoutRef } from 'react'; import { ProviderProps, InitializationProps, HeadlessFirebaseUser } from 'react-doorman'; import { AuthFlow } from '../views'; import ControlledPhoneAuth from '../views/Controlled/Controlled-Phone-Screen'; import ControlledConfirmScreen from '../views/Controlled/Controlled-Confirm-Screen'; import { CommonScreenProps } from '../views/types'; declare type Options = Omit & { LoadingScreen?: ComponentType; includeProvider?: boolean; /** * Callback function called when a user's 6-digit code is verified, and they are authenticated. * * You might want to use this for analytics. */ onCodeVerified?: ComponentPropsWithoutRef['onCodeVerified']; /** * Callback function called when the an SMS is successfully sent to the user. * * Receives a dictionary with the auth `token` value. */ onSmsSuccessfullySent?: ComponentPropsWithoutRef['onSmsSuccessfullySent']; phoneScreenProps?: ComponentPropsWithoutRef['phoneScreenProps']; confirmScreenProps?: ComponentPropsWithoutRef['confirmScreenProps']; /** * **Required:** Your app's config for doorman. * * ```javascript * { * projectId: string // projectId from firebase * } * ``` */ doorman: InitializationProps; /** * (Optional) Your custom splash screen component that will appear before any auth screens are shown. * * It receives one prop: a function called `next` that should be called whenever a user wants to continue to the auth screens. */ SplashScreen?: ComponentType<{ next: () => void; }>; } & CommonScreenProps; export declare function withPhoneAuth

(Component: ComponentType

, options: Options): (props: P) => JSX.Element; export {};