/** * GitHub Copilot OAuth flow */ import type { OAuthCredentials, OAuthDeviceCodeInfo, OAuthProviderInterface } from "./types.ts"; export declare function normalizeDomain(input: string): string | null; export declare function getGitHubCopilotBaseUrl(token?: string, enterpriseDomain?: string): string; /** * Refresh GitHub Copilot token */ export declare function refreshGitHubCopilotToken(refreshToken: string, enterpriseDomain?: string): Promise; /** * Login with GitHub Copilot OAuth (device code flow) * * @param options.onDeviceCode - Callback with URL and user code * @param options.onPrompt - Callback to prompt user for input * @param options.onProgress - Optional progress callback * @param options.signal - Optional AbortSignal for cancellation */ export declare function loginGitHubCopilot(options: { onDeviceCode: (info: OAuthDeviceCodeInfo) => void; onPrompt: (prompt: { message: string; placeholder?: string; allowEmpty?: boolean; }) => Promise; onProgress?: (message: string) => void; signal?: AbortSignal; }): Promise; export declare const githubCopilotOAuthProvider: OAuthProviderInterface; //# sourceMappingURL=github-copilot.d.ts.map