/** * Anthropic OAuth flow (Claude Pro/Max subscription) * * Wraps @mariozechner/pi-ai's loginAnthropic for server-side use. * The pi-ai callback API is adapted to a start/exchange pattern * for HTTP route handlers. */ import type { OAuthCredentials } from "./types"; export interface AnthropicFlow { authUrl: string; /** Provide the authorization code (format: code#state) to complete the flow */ submitCode: (code: string) => void; /** Resolves with credentials once submitCode() is called */ credentials: Promise; } /** * Start the Anthropic OAuth flow. * Returns an auth URL and a way to submit the code + get credentials. */ export declare function startAnthropicLogin(): Promise; /** * Refresh an expired Anthropic token. */ export declare function refreshAnthropicToken(refreshToken: string): Promise; //# sourceMappingURL=anthropic.d.ts.map