import type { User } from '@openfort/openfort-js'; import { OpenfortError } from '../../../core/errors'; import type { OpenfortHookOptions } from '../../../types'; import type { EthereumUserWallet, SolanaUserWallet } from '../walletTypes'; import { type CreateWalletPostAuthOptions } from './useConnectToWalletPostAuth'; type PhoneAuthResult = { error?: OpenfortError; user?: User; wallet?: EthereumUserWallet | SolanaUserWallet; }; type LoginWithPhoneOtpOptions = { phoneNumber: string; otp: string; } & OpenfortHookOptions & CreateWalletPostAuthOptions; type RequestPhoneOtpOptions = { phoneNumber: string; } & OpenfortHookOptions & CreateWalletPostAuthOptions; type UsePhoneHookOptions = OpenfortHookOptions & CreateWalletPostAuthOptions; export declare const usePhoneOtpAuth: (hookOptions?: UsePhoneHookOptions) => { isAwaitingInput: boolean; isLoading: boolean; isError: boolean; isSuccess: boolean; error: OpenfortError | null | undefined; logInWithPhoneOtp: (options: LoginWithPhoneOtpOptions) => Promise; requestPhoneOtp: (options: RequestPhoneOtpOptions) => Promise; linkPhoneOtp: (options: LoginWithPhoneOtpOptions) => Promise; reset: () => void; isRequesting: boolean; }; export {};