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 EmailOtpAuthResult = { error?: OpenfortError; user?: User; wallet?: EthereumUserWallet | SolanaUserWallet; }; type LoginWithEmailOtpOptions = { email: string; otp: string; } & OpenfortHookOptions & CreateWalletPostAuthOptions; type RequestEmailOtpOptions = { email: string; } & OpenfortHookOptions & CreateWalletPostAuthOptions; type UseEmailOtpHookOptions = OpenfortHookOptions & CreateWalletPostAuthOptions; export declare const useEmailOtpAuth: (hookOptions?: UseEmailOtpHookOptions) => { isAwaitingInput: boolean; isLoading: boolean; isError: boolean; isSuccess: boolean; error: OpenfortError | null | undefined; signInEmailOtp: (options: LoginWithEmailOtpOptions) => Promise; requestEmailOtp: (options: RequestEmailOtpOptions) => Promise; reset: () => void; isRequesting: boolean; }; export {};