export interface UseLoginOptions { /** * Callback when login is successful */ onSuccess?: (token: string) => void; /** * Callback when an error occurs */ onError?: (error: Error) => void; } export interface UseLoginResult { /** * Request verification code for email */ requestCode: (email: string) => Promise<{ success: boolean; error?: string; }>; /** * Verify code and complete login */ verifyCode: (email: string, code: string) => Promise<{ success: boolean; token?: string; sessionId?: string; error?: string; }>; /** * Combined loading state (true if either request or verify is loading) */ isLoading: boolean; /** * Loading state for request code */ isRequestingCode: boolean; /** * Loading state for verify code */ isVerifyingCode: boolean; /** * Combined error state */ error: Error | null; /** * Error from request code */ requestCodeError: Error | null; /** * Error from verify code */ verifyCodeError: Error | null; } export declare function useLogin(options?: UseLoginOptions): UseLoginResult;