This repository has been archived on 2026-03-06. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files

17 lines
728 B
TypeScript

/**
* Anthropic OAuth flow (Claude Pro/Max)
*/
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<string>): Promise<OAuthCredentials>;
/**
* Refresh Anthropic OAuth token
*/
export declare function refreshAnthropicToken(refreshToken: string): Promise<OAuthCredentials>;
export declare const anthropicOAuthProvider: OAuthProviderInterface;
//# sourceMappingURL=anthropic.d.ts.map