/** * Authentication API * Handles QR code login and browser OAuth flows */ export interface QrSessionResponse { success: boolean; sessionId: string; expiresAt: string; expiresInSeconds: number; qrContent: string; } export interface QrStatusResponse { success: boolean; status: 'pending' | 'scanned' | 'confirmed' | 'expired' | 'used'; token?: string; userId?: number; isExpired?: boolean; expiresAt?: string; } export interface LoginResponse { user: { id: number; email: string; username?: string; displayName?: string; }; token: string; } export interface UserInfo { id: number; email: string; name?: string; picture?: string; } /** * Create a QR login session */ export declare function createQrSession(deviceType?: string): Promise; /** * Check QR session status */ export declare function getQrSessionStatus(sessionId: string): Promise; /** * Perform QR code login * Displays QR code in terminal and polls for confirmation */ export declare function qrLogin(onStatus?: (status: string) => void): Promise<{ success: boolean; error?: string; }>; /** * Perform browser-based OAuth login * Opens browser and starts local server to receive callback */ export declare function browserLogin(): Promise<{ success: boolean; error?: string; }>; /** * Get current user info */ export declare function getCurrentUser(): Promise; /** * Validate current token */ export declare function validateToken(): Promise; /** * Login with email and password */ export declare function emailLogin(email: string, password: string): Promise<{ success: boolean; error?: string; }>; /** * Login with wallet private key (EVM or Solana). * Performs the full nonce-request -> sign -> login flow. */ export declare function walletLogin(chain: 'evm' | 'solana', privateKey: string): Promise<{ success: boolean; error?: string; address?: string; }>; /** * Logout - clear stored credentials */ export declare function logout(): void; //# sourceMappingURL=auth.d.ts.map