/** * OAuth Device Flow implementation for Qwen */ export interface DeviceAuthorization { device_code: string; user_code: string; verification_uri: string; verification_uri_complete: string; expires_in: number; interval: number; verifier: string; } export declare function authorizeDevice(): Promise; export declare function pollForToken(deviceCode: string, codeVerifier: string, intervalSeconds: number, expiresIn: number): Promise<{ success: boolean; access_token?: string; refresh_token?: string; expires_in?: number; api_key?: string; error?: string; }>; /** * Refresh an expired access token using a refresh token * Uses mutex to prevent race conditions when multiple requests * try to refresh the token simultaneously */ export declare function refreshAccessToken(refreshToken: string): Promise<{ success: boolean; access_token?: string; refresh_token?: string; expires_in?: number; api_key?: string; error?: string; }>; //# sourceMappingURL=oauth.d.ts.map