import type { AdapterBillingType, AdapterEnvironmentTestContext, AdapterEnvironmentTestResult, AdapterExecutionContext, AdapterExecutionResult } from "@penclipai/adapter-utils"; import type { AcpxEngineExecutorOptions } from "@penclipai/adapter-utils/acpx-engine/execute"; export type CodexExecutionEngine = "cli" | "acp"; export interface CodexEngineSelection { engine: CodexExecutionEngine; explicit: boolean; fallbackReason?: string; } type CodexEngineResolutionInput = Pick & Partial>; type CodexAcpExecutorOptions = Omit; type CodexAcpExecutor = (ctx: AdapterExecutionContext) => Promise; export declare function resolveCodexExecutionEngine(config: Record): CodexEngineSelection; export declare function resolveCodexExecutionEngineForRun(input: CodexEngineResolutionInput): Promise; export declare function formatCodexAcpFallbackMessage(reason: string): string; export declare function buildCodexAcpConfig(config: Record): Record; /** * Classify billing the same way the Codex CLI lane does so ACP runs land in * the cost ledger with a real provider/billingType instead of acpx/unknown. * Host env only counts for local execution targets; remote targets see just * the adapter-config env. */ export declare function resolveCodexAcpBillingIdentity(ctx: Pick & Partial>): { provider: string; biller: string; billingType: AdapterBillingType; }; export declare function createCodexAcpExecutor(options?: CodexAcpExecutorOptions): CodexAcpExecutor; export declare function nodeVersionMeetsCodexAcpMinimum(version?: string): boolean; export declare function testCodexAcpEnvironment(ctx: AdapterEnvironmentTestContext): Promise; export {}; //# sourceMappingURL=acp.d.ts.map