/** * GitHub OAuth using Device Flow * * Device Flow is perfect for CLI applications: * https://docs.github.com/en/apps/oauth-apps/building-oauth-apps/authorizing-oauth-apps#device-flow * * Flow: * 1. Request device code * 2. Show user_code and verification_uri to user * 3. Poll for access token * 4. Save token to .env */ export interface DeviceCodeResponse { device_code: string; user_code: string; verification_uri: string; expires_in: number; interval: number; } export interface TokenResponse { access_token: string; token_type: string; scope: string; } /** * Main OAuth flow - returns GitHub token */ export declare function githubOAuth(): Promise; /** * Save token to .env file * Uses atomic write operation to avoid TOCTOU race condition * * @deprecated Use credentials.ts instead for OAuth-based authentication * This function is kept for backward compatibility with existing code */ export declare function saveTokenToEnv(token: string): Promise; //# sourceMappingURL=github-oauth.d.ts.map