/** * Diagnostic utilities for testing Qwen OAuth endpoints */ export interface DiagnosticResult { success: boolean; endpoint: string; status?: number; statusText?: string; error?: string; data?: any; responseTime?: number; } /** * Test if Qwen OAuth device code endpoint is accessible */ export declare function testDeviceCodeEndpoint(): Promise; /** * Test if Qwen API endpoint is accessible * Tests the /chat/completions endpoint (OpenAI-compatible) */ export declare function testAPIEndpoint(baseURL: string, token?: string): Promise; /** * Test if the base OAuth URL is accessible */ export declare function testBaseURL(): Promise; /** * Run all diagnostic tests */ export declare function runDiagnostics(token?: string): Promise<{ baseURL: DiagnosticResult; deviceCode: DiagnosticResult; apis: Record; }>; /** * Run the OAuth device flow to get a token */ export declare function runOAuthFlow(): Promise<{ access_token: string; refresh_token: string; expires_in: number; } | null>; /** * Refresh an access token */ export declare function refreshToken(refreshToken: string): Promise<{ access_token: string; expires_in: number; } | null>; //# sourceMappingURL=diagnostic.d.ts.map