/** * ChatGPT — "Sign in with ChatGPT" OAuth (Authorization Code + PKCE). * * The headless half of the flow: drives the loopback authorization-code * exchange and returns a persistence-agnostic {@link OAuthLoginOutcome}, so * both WebUI servers can sign in over a WebSocket with no terminal IO. * * The wire protocol itself (client id, endpoints, request bodies, response * validation) lives in `./codex-protocol.js` and model discovery in * `./codex-models.js` — shared with the CLI terminal flow and the runtime * provider's refresh path, which used to keep their own copies. */ import type { BeginOAuthDeps, OAuthSession } from './types.js'; export { buildCodexAuthorizeUrl, CODEX_BASE_URL, CODEX_PROVIDER_ID } from './codex-protocol.js'; export { filterCurrentCodexModelIds } from './codex-models.js'; export declare function beginChatGPTLogin(deps: BeginOAuthDeps | undefined, signal?: AbortSignal): Promise; //# sourceMappingURL=chatgpt.d.ts.map