/** IPv6 loopback compatibility for pi-ai's IPv4-only Codex OAuth callback. */ /** Fixed callback port registered by the OpenAI Codex OAuth client. */ export declare const CODEX_CALLBACK_PORT = 1455; /** Temporary listener owned by one browser-login attempt. */ export interface CodexCallbackBridge { close(): Promise; } /** Factory injected into the authentication lifecycle. */ export type CodexCallbackBridgeFactory = () => Promise; /** * Bridge `[::1]` callbacks to pi-ai's `127.0.0.1` listener for one login. * * @param port OAuth callback port; injectable for isolated tests. * @param configuredHost Explicit pi-ai callback host, when present. * @param ipv6Bridge Whether to open the IPv6 compatibility listener after the IPv4 port check. * @returns A closeable bridge, or undefined when IPv6 is disabled/unavailable or pi-ai owns a custom host. */ export declare function startCodexIpv6CallbackBridge(port?: number, configuredHost?: string | undefined, ipv6Bridge?: boolean): Promise;