import type { CommandConfirmation } from "./review.js";
import type { ApplyPatchCommand, ApprovalPolicy } from "../../approvals.js";
import type { ExecInput } from "./sandbox/interface.js";
import { type LibraryConfig } from "../../lib.js";
import { type CoreMessage } from "ai";
type HandleExecCommandResult = {
    outputText: string;
    metadata: Record<string, unknown>;
    additionalItems?: Array<CoreMessage>;
};
export declare function handleExecCommand(args: ExecInput, config: LibraryConfig, policy: ApprovalPolicy, additionalWritableRoots: ReadonlyArray<string>, getCommandConfirmation: (command: Array<string>, applyPatch: ApplyPatchCommand | undefined) => Promise<CommandConfirmation>, abortSignal?: AbortSignal): Promise<HandleExecCommandResult>;
export {};
