/** * Codex SDK integration for agent interactions * * Uses @openai/codex-sdk for native TypeScript integration. */ import './codex-spawn-guard.js'; import type { AgentResponse, ProviderUsageSnapshot } from '../../core/models/index.js'; import { type CodexCallOptions } from './types.js'; import { type CodexEvent } from './CodexStreamHandler.js'; export type { CodexCallOptions } from './types.js'; export declare function extractProviderUsageFromTurnCompleted(event: CodexEvent): ProviderUsageSnapshot; /** * Client for Codex SDK agent interactions. * * Handles thread management, streaming event conversion, * and response processing. */ export declare class CodexClient { private isRetriableError; private isReconnectFailure; private withReconnectFailureDiagnostics; private waitForRetryDelay; private resolveFailureDetail; private shouldRetry; private recordRetry; private buildErrorResponse; private buildRateLimitedResponse; /** Call Codex with an agent prompt */ call(agentType: string, prompt: string, options: CodexCallOptions): Promise; /** Call Codex with a custom agent configuration (system prompt + prompt) */ callCustom(agentName: string, prompt: string, systemPrompt: string, options: CodexCallOptions): Promise; } export declare function callCodex(agentType: string, prompt: string, options: CodexCallOptions): Promise; export declare function callCodexCustom(agentName: string, prompt: string, systemPrompt: string, options: CodexCallOptions): Promise; //# sourceMappingURL=client.d.ts.map