import { n as RuntimeEnv } from "./runtime-Bxifh4bY.js"; import { a as fetchWithSsrFGuard } from "./fetch-guard-BKvfwdRa.js"; //#region extensions/github-copilot/login.d.ts declare function setGitHubCopilotDeviceFlowFetchGuardForTesting(impl: typeof fetchWithSsrFGuard | null): void; type GitHubCopilotDeviceFlowResult = { status: "authorized"; accessToken: string; } | { status: "access_denied"; } | { status: "expired"; }; type GitHubCopilotDeviceFlowIO = { showCode(args: { verificationUrl: string; userCode: string; expiresInMs: number; }): Promise; openUrl?: (url: string) => Promise; }; declare function runGitHubCopilotDeviceFlow(io: GitHubCopilotDeviceFlowIO): Promise; declare function githubCopilotLoginCommand(opts: { profileId?: string; yes?: boolean; agentDir?: string; }, runtime: RuntimeEnv): Promise; //#endregion export { runGitHubCopilotDeviceFlow as n, setGitHubCopilotDeviceFlowFetchGuardForTesting as r, githubCopilotLoginCommand as t };