/** * OpenAI Codex (ChatGPT Plus/Pro subscription) OAuth flow * * Wraps @mariozechner/pi-ai's loginOpenAICodex for server-side use. * Handles local callback server + manual code paste fallback. */ import type { OAuthCredentials } from "./types"; export interface CodexFlow { authUrl: string; state: string; /** Submit a manually-pasted code/URL */ submitCode: (code: string) => void; /** Wait for credentials (either via callback server or manual code) */ credentials: Promise; /** Close the callback server */ close: () => void; } /** * Start the OpenAI Codex OAuth flow. * Starts a local callback server on port 1455 and returns the auth URL. */ export declare function startCodexLogin(): Promise; /** * Refresh an expired OpenAI Codex token. */ export declare function refreshCodexToken(refreshToken: string): Promise; //# sourceMappingURL=openai-codex.d.ts.map