import { r as OAuthCredentials } from "./provider-oauth-runtime-BM8VOa8i.js"; import { ft as ProviderAuthContext } from "./plugin-entry-BTRQGtzH.js"; //#region extensions/openai/openai-chatgpt-oauth.runtime.d.ts type PreflightFailureKind = "tls-cert" | "network"; type OpenAIOAuthTlsPreflightResult = { ok: true; } | { ok: false; kind: PreflightFailureKind; code?: string; message: string; }; declare function runOpenAIOAuthTlsPreflight(options?: { timeoutMs?: number; fetchImpl?: typeof fetch; }): Promise; declare const testing: { runOpenAIOAuthTlsPreflight: typeof runOpenAIOAuthTlsPreflight; }; declare function loginOpenAICodexOAuth(params: { prompter: ProviderAuthContext["prompter"]; runtime: ProviderAuthContext["runtime"]; oauth: ProviderAuthContext["oauth"]; isRemote: boolean; openUrl: (url: string) => Promise; signal?: AbortSignal; onManualCodeInput?: () => Promise; localBrowserMessage?: string; }): Promise; //#endregion export { testing as n, loginOpenAICodexOAuth as t };