import type { GitHubOAuthConfig, User } from "./types.js"; /** * OAuth 2.0 client for GitHub authentication. * Uses native fetch() for HTTP calls with no external dependencies. */ export declare class GitHubOAuthClient { private readonly config; constructor(config: GitHubOAuthConfig); /** * Build the GitHub OAuth authorization URL. * Optionally supports PKCE via codeVerifier (S256 challenge). */ getAuthorizationUrl(state: string, codeVerifier?: string): string; /** * Exchange an authorization code for an access token. */ exchangeCode(code: string, codeVerifier?: string): Promise<{ accessToken: string; tokenType: string; scope: string; }>; /** * Fetch the authenticated user's profile from GitHub. */ getUserProfile(accessToken: string): Promise; } //# sourceMappingURL=github-oauth.d.ts.map