import type { ExecInput, ExecOutputMetadata } from "./agent/sandbox/interface.js";
import type { CoreMessage } from "ai";
export declare function parseToolCallOutput(toolCallOutput: string): {
    output: string;
    metadata: ExecOutputMetadata;
};
export type CommandReviewDetails = {
    cmd: Array<string>;
    cmdReadableText: string;
};
/**
 * Tries to parse a tool call and, if successful, returns an object that has
 * both:
 * - an array of strings to use with `ExecInput` and `canAutoApprove()`
 * - a human-readable string to display to the user
 */
export declare function parseToolCall(message: CoreMessage): CommandReviewDetails | undefined;
/**
 * If toolCallArguments is a string of JSON that can be parsed into an object
 * with a "cmd" or "command" property that is an `Array<string>`, then returns
 * that array. Otherwise, returns undefined.
 */
export declare function parseToolCallArguments(message: CoreMessage): ExecInput | undefined;
