export declare const OAUTH_CLIENT_ID = "9d1c250a-e61b-44d9-88ed-5944d1962f5e"; export declare const OAUTH_AUTHORIZE_URL = "https://claude.ai/oauth/authorize"; export declare const CONSOLE_OAUTH_AUTHORIZE_URL = "https://platform.claude.com/oauth/authorize"; export declare const OAUTH_TOKEN_URL = "https://platform.claude.com/v1/oauth/token"; export declare const OAUTH_REDIRECT_URI = "https://platform.claude.com/oauth/code/callback"; export declare const OAUTH_SCOPES: readonly ["org:create_api_key", "user:profile", "user:inference", "user:sessions:claude_code", "user:mcp_servers", "user:file_upload"]; export type OAuthCredentials = { readonly type: "oauth"; readonly refresh: string; readonly access: string; readonly expires: number; }; export type OAuthAuthorization = { readonly url: string; readonly verifier: string; readonly state: string; }; type OAuthFailureKind = "api_key_http" | "api_key_response" | "api_key_transport" | "invalid_callback" | "state_mismatch" | "token_transport" | "token_http" | "token_response"; export declare class OAuthFlowError extends Error { readonly kind: OAuthFailureKind; readonly status?: number | undefined; constructor(kind: OAuthFailureKind, status?: number | undefined); } export declare function createOAuthAuthorization(authorizeUrl?: string): OAuthAuthorization; export declare function exchangeOAuthCode(input: string, authorization: OAuthAuthorization): Promise; export declare function createConsoleApiKey(access: string): Promise; export declare function refreshOAuthToken(refresh: string): Promise; export {};