/** * Authentication Helper * Handles auth code generation and token exchange */ import type { SDKConfig } from '../types'; export interface AuthTokens { token: string; refresh_token?: string; } export interface AuthHelperConfig { config: SDKConfig; authCode: string | null; onGetAuthCode?: () => Promise; log: (message: string, data?: any) => void; } /** * Generate auth code from Desktop App session * * Priority order: * 1. Explicitly set auth code * 2. Callback to get from backend * 3. Mock auth code (fallback for testing) */ export declare function generateAuthCode(config: AuthHelperConfig): Promise; /** * Exchange authorization code for authentication tokens * Implements OAuth 2.0 authorization code flow */ export declare function exchangeAuthCodeForTokens(authCode: string, config: AuthHelperConfig): Promise; //# sourceMappingURL=authHelper.d.ts.map