import type { ChatChunkType } from '../types'; import { type PolicyContext } from './cli-runner-env'; export declare const ERR_CODEX_AUTH_INVALID: string; export declare const ERR_CODEX_EXIT_CODE_1 = "codex CLI \u304C\u30B3\u30FC\u30C9 1 \u3067\u7D42\u4E86\u3057\u307E\u3057\u305F"; export interface CodexResult { text: string; metadata: { args: string[]; exitCode: number | null; hasStderr: boolean; durationMs: number; }; } export interface CodexHandle { result: Promise; cancel: () => void; } export interface RunCodexOptions { message: string; sendChunk: (type: ChatChunkType, content: string) => Promise; addDirs?: string[]; locale?: string; awsEnv?: Record; cwd?: string; systemPrompt?: string; model?: string; mcpConfigPath?: string; policyContext?: PolicyContext; envVarsOverride?: Record; } export declare function buildCodexArgs(message: string, options?: { addDirs?: string[]; locale?: string; cwd?: string; systemPrompt?: string; model?: string; outputLastMessagePath?: string; mcpConfigPath?: string; profile?: string; sandboxMode?: string; }): string[]; /** テスト用のフラグリセット */ export declare function _resetCodexSandboxWarning(): void; export declare function runCodex(options: RunCodexOptions): CodexHandle; export declare function formatCodexExitError(code: number | null, stderrText: string): string; export declare function isCodexAuthError(stderrText: string): boolean; export declare function buildCodexMcpConfigOverrides(mcpConfigPath: string): string[]; export declare function redactCodexArgs(args: string[]): string[]; //# sourceMappingURL=codex-runner.d.ts.map