import { VerifyResponse } from '@dynamic-labs/sdk-api-core'; import { OtpDestination, PhoneData } from '@dynamic-labs/types'; export type EmailOtpParams = { destination: Extract; target: string; }; export type SmsOtpParams = { destination: Extract; target: PhoneData; }; export type OtpData = EmailOtpParams | SmsOtpParams; export type OtpMessages = { /** Request to send an OTP to a destination for verification */ sendOTP: (data: OtpData) => Promise; /** Performs verification for the latest send OTP */ verifyOTP: (token: string) => Promise; /** Re-sends the OTP for verification */ resendOTP: () => Promise; emailVerificationFinished: (params: { isSuccess: boolean; destination: string; }) => void; smsVerificationFinished: (params: { isSuccess: boolean; destination: PhoneData; }) => void; }; export declare const emailEventNames: "emailVerificationFinished"[]; export declare const smsEventNames: "smsVerificationFinished"[];