/** * GitHub OAuth helpers for upstream authentication delegation. * The MCP server uses GitHub as the identity provider -- users authenticate * with GitHub, and we map their GitHub user ID to a Rewind user_id. */ export interface GitHubUser { id: number; login: string; name: string | null; avatar_url: string; } /** * Build the GitHub OAuth authorization URL. * Redirects the user to GitHub to authenticate. */ export declare function getGitHubAuthorizeUrl(clientId: string, redirectUri: string, state: string): string; /** * Exchange a GitHub authorization code for an access token, * then fetch the authenticated user's profile. */ export declare function exchangeGitHubCode(code: string, clientId: string, clientSecret: string): Promise;