export declare const CODEX_RESPONSES_URL = "https://chatgpt.com/backend-api/codex/responses"; export type CodexReasoningEffort = 'none' | 'low' | 'medium' | 'high' | 'xhigh'; export type CodexContentPart = { type: 'text' | 'input_text'; text?: string; } | { type: string; [key: string]: unknown; }; export interface CodexInstructionsInputMessage { readonly role?: string; readonly content?: unknown; } export interface CodexResponsesRequestInput { readonly model: string; readonly stream?: boolean; readonly input?: unknown; readonly instructions?: string; readonly reasoning?: { readonly effort?: CodexReasoningEffort | string; readonly [key: string]: unknown; }; readonly max_output_tokens?: number; readonly store?: boolean; readonly [key: string]: unknown; } export interface CodexPreparedResponsesRequest { readonly url: typeof CODEX_RESPONSES_URL; readonly body: CodexResponsesRequestInput; } export declare const stringifyCodexContent: (value: unknown) => string; export declare const codexInstructionsText: (content: unknown) => string; export declare const collectCodexInstructions: (messages: readonly CodexInstructionsInputMessage[], fallback?: string) => string; export declare const stripCodexInputIds: (body: string) => string; export declare const prepareCodexResponsesRequest: (request: CodexResponsesRequestInput) => CodexPreparedResponsesRequest; export interface CodexUsageDoneEvent { readonly type: 'done'; readonly data: { readonly usage?: unknown; }; } export declare const codexDoneEventFromResponseCompleted: (event: unknown) => CodexUsageDoneEvent; //# sourceMappingURL=codex.d.ts.map