import type { PromptRunOptions } from '../types/PromptRunOptions'; import type { PromptRunResult } from '../types/PromptRunResult'; import type { PromptRunner } from '../types/PromptRunner'; import type { HarnessSubscriptionUsage } from '../types/HarnessSubscriptionUsage'; import type { OpenAiCodexRunnerOptions } from './OpenAiCodexRunnerOptions'; /** * Runs prompts via the OpenAI Codex CLI. */ export declare class OpenAiCodexRunner implements PromptRunner { private readonly options; /** TEAM uses this harness's existing command tool, with the same permissions as its caller. */ readonly teamCapability: "command-tools"; readonly name = "codex"; private readonly rateLimitBackoff; /** * Creates a new Codex runner. */ constructor(options: OpenAiCodexRunnerOptions); /** * Reads the current ChatGPT subscription quota snapshot through Codex's local app server. * * API-key sessions and unsupported Codex versions simply return no snapshot, which keeps this optional dashboard * information from affecting the actual prompt execution. */ getSubscriptionUsage(): Promise; /** * Runs the Codex prompt in a temporary script and waits for completion output. */ runPrompt(options: PromptRunOptions): Promise; }