/**
 * Sign-in flow for Anthropic accounts (Claude Pro / Max) over OAuth + PKCE.
 */
import type { OAuthCredentials, OAuthProviderInterface } from "./types.js";
/**
 * Walk a user through Anthropic OAuth sign-in.
 *
 * @param onAuthUrl - Invoked with the authorization URL so the caller can open it.
 * @param onPromptCode - Invoked to collect the authorization code from the user.
 */
export declare function loginAnthropic(onAuthUrl: (url: string) => void, onPromptCode: () => Promise<string>): Promise<OAuthCredentials>;
/**
 * Exchange an Anthropic refresh token for a renewed credential.
 */
export declare function refreshAnthropicToken(refreshToken: string): Promise<OAuthCredentials>;
export declare function isAnthropicOAuthCredentialsValid(credentials: OAuthCredentials): boolean;
export declare const anthropicOAuthProvider: OAuthProviderInterface;
