import type { User } from '@bounded-sh/core'; export interface TurnkeyEmailLoginHandle { /** The email the code was sent to (echo, for the widget's "code sent to ..." line). */ email: string; /** * Complete login with the 6-digit code the user received. Seals the code to Turnkey, * verifies it server-side, and resolves with the signed-in User. Rejects with a * user-safe Error on an invalid/expired code (the handle stays usable for a retry). */ verify(code: string): Promise; } /** * Begin authMode:"turnkey" login: ask Turnkey to email a one-time code to `email`. * Resolves with a handle whose `verify(code)` finishes the login. Web-only (the sealing * step needs the signer iframe); on React Native use loginWithRedirect() instead. */ export declare function startTurnkeyEmailLogin(email: string): Promise;