/** * Anthropic OAuth flow (Claude Pro/Max) */ /** * [WHO]: anthropicOAuthProvider * [FROM]: Depends on ./pkce.js * [TO]: Consumed by core/lib/ai/src/index.ts * [HERE]: core/lib/ai/src/utils/oauth/anthropic.ts - */ import type { OAuthCredentials, OAuthProviderInterface } from "./types.js"; /** * Login with Anthropic OAuth (device code flow) * * @param onAuthUrl - Callback to handle the authorization URL (e.g., open browser) * @param onPromptCode - Callback to prompt user for the authorization code */ export declare function loginAnthropic(onAuthUrl: (url: string) => void, onPromptCode: () => Promise): Promise; /** * Refresh Anthropic OAuth token */ export declare function refreshAnthropicToken(refreshToken: string): Promise; export declare const anthropicOAuthProvider: OAuthProviderInterface;