import type { AgentConfig, AgentExecutionInput, AgentExecutionResult, AgentRuntimeProfile } from '../context.js'; export interface CommandExecutionResult { exitCode: number; stdout: string; stderr: string; } export interface CommandExecutionRequest { command: string; args: string[]; cwd: string; input?: string; } export type CommandRunner = (request: CommandExecutionRequest) => Promise; export declare function runCommand(request: CommandExecutionRequest): Promise; export declare const AGENT_RESULT_SCHEMA: { readonly type: "object"; readonly additionalProperties: false; readonly required: readonly ["success", "summary", "needsReview"]; readonly properties: { readonly success: { readonly type: "boolean"; }; readonly summary: { readonly type: "string"; }; readonly needsReview: { readonly type: "boolean"; }; readonly error: { readonly type: readonly ["string", "null"]; }; readonly metadata: { readonly type: "object"; }; readonly deliverables: { readonly type: "array"; readonly items: { readonly type: "object"; readonly additionalProperties: false; readonly required: readonly ["type", "title", "content"]; readonly properties: { readonly type: { readonly type: "string"; readonly enum: readonly ["document", "code", "test", "config", "design", "review"]; }; readonly title: { readonly type: "string"; }; readonly content: { readonly type: "string"; }; }; }; }; }; }; export declare function buildAgentPrompt(input: AgentExecutionInput, config: AgentConfig): string; export declare function mapCodexArgs(command: string, input: AgentExecutionInput, config: AgentConfig, schemaPath: string, outputPath: string): CommandExecutionRequest; export declare function mapClaudeArgs(command: string, input: AgentExecutionInput, config: AgentConfig): CommandExecutionRequest; export declare function withTemporarySchemaFiles(callback: (paths: { schemaPath: string; outputPath: string; }) => Promise): Promise; export declare function readStructuredOutput(outputPath: string, stdout: string): Promise; export declare function parseAgentExecutionResult(raw: string): AgentExecutionResult; export declare function enrichResultMetadata(result: AgentExecutionResult, provider: AgentRuntimeProfile['provider'], mode: 'external-command' | 'bridge-fallback', config: AgentConfig, extra?: Record): AgentExecutionResult; //# sourceMappingURL=command-bridge.d.ts.map