import { E as ProviderAuthDoctorHintContext, St as OAuthLoginCallbacks, xt as OAuthCredentials } from "../../plugin-entry-BMbml7Gi.js";
import { a as OAuthProvider, i as OAuthCredential, o as LegacyOAuthRef } from "../../types-C0Qb8Bvw.js";
import "../../provider-auth-C1_g9F4T.js";
//#region extensions/github-copilot/oauth.d.ts
export declare function loginGithubCopilotOAuth(callbacks: OAuthLoginCallbacks): Promise<OAuthCredentials>;
export declare function refreshGithubCopilotOAuth(credential: OAuthCredential): {
  access: string;
  expires: number;
  refresh: string;
  provider: OAuthProvider;
  email?: string;
  enterpriseUrl?: string;
  projectId?: string;
  accountId?: string;
  chatgptPlanType?: string;
  subscriptionType?: string;
  rateLimitTier?: string;
  idToken?: string;
  type: "oauth";
  oauthRef?: LegacyOAuthRef;
  clientId?: string;
  copyToAgents?: boolean;
  displayName?: string;
};
export declare function formatGithubCopilotApiKey(credential: {
  type: string;
  refresh?: string;
  enterpriseUrl?: string;
}): string;
export declare function parseGithubCopilotApiKey(value: string): {
  githubToken: string;
  githubDomain?: string;
};
export declare function buildGithubCopilotAuthDoctorHint(context: ProviderAuthDoctorHintContext): string | undefined;
//#endregion