/** * Anthropic OAuth flow (Claude Pro/Max) * [WHO]: loginAnthropic, refreshAnthropicToken, anthropicOAuthProvider * [FROM]: no external imports * [TO]: Consumed by core/lib/ai/src/utils/oauth/index.ts * [HERE]: core/lib/ai/src/utils/oauth/anthropic.ts - owned by core/lib/ai/AGENT.md */ 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;