import { OAuthAuthenticator } from '../base.js'; import { ActionParams, ActionResponse, AuthenticationURLOptions, CallbackParams, TokenResponse, GenericOAuth2Config, GenericOAuth2UserInfo } from '../../../core/types.js'; export interface GenericOAuth2CallbackParams extends CallbackParams { grantType: 'authorization_code' | 'refresh_token'; } export interface GenericOAuth2TokenResponse extends TokenResponse { [key: string]: any; } /** * Generic OAuth2 authenticator for MCP servers * Supports any OAuth2-compatible service with configurable parameters */ export declare class GenericOAuth2Authenticator extends OAuthAuthenticator { protected config: GenericOAuth2Config; constructor(allowedScopes: string[], config: GenericOAuth2Config); getAuthenticationURL(scopes: string[], options: AuthenticationURLOptions): string; callback(params: GenericOAuth2CallbackParams): Promise; refreshToken(refreshToken: string): Promise; getUserInfo(accessToken: string): Promise; action(params: ActionParams, accessToken: string, refreshToken?: string, retry?: boolean): Promise; } //# sourceMappingURL=oauth2-generic.d.ts.map