/** * Resolved authentication configuration for Qwen API calls. * * `source` indicates which credential source won the priority resolution: * - `oauth`: Qwen Code OAuth token from ~/.qwen/oauth_creds.json * - `env`: API key from DASHSCOPE_API_KEY or QWEN_API_KEY */ export interface AuthConfig { apiKey: string; baseUrl: string; model: string; source: 'oauth' | 'env'; } /** * Resolves authentication using strict source priority: * 1) Qwen Code OAuth token from ~/.qwen/oauth_creds.json * 2) Environment API key (DASHSCOPE_API_KEY or QWEN_API_KEY) * * OAuth token is used only when `access_token` is a non-empty string and * `expires_at` (unix seconds) is in the future. * * Throws when no valid authentication source can be resolved. */ export declare function resolveAuth(): AuthConfig;