import React from "react";
import "react-json-view-lite/dist/index.css";
export type ApprovalInfo = {
    summary: string;
    riskLevel?: "low" | "medium" | "high";
    allowableScope?: {
        parentItemId: string;
        parentItemPath?: string;
        operationType: string;
    };
};
export interface BaseToolCall {
    id: string;
    displayName?: string;
    function?: {
        name: string;
        arguments: string;
        result?: string | object;
        error?: string;
    };
    requiresApproval?: ApprovalInfo;
    isPruned?: boolean;
    prunedAt?: string;
    isCompleted?: boolean;
    messageId?: string;
    dbMessageId?: string;
    responseTimeMs?: number;
    createdDate?: string;
}
export interface AgentToolCall {
    id: string;
    messageId: string;
    dbMessageId?: string;
    toolCallId: string;
    functionName: string;
    functionArguments: string;
    functionResult?: string;
    functionResultRichContent?: string;
    functionError?: string;
    isPruned?: boolean;
    prunedAt?: string;
    isCompleted: boolean;
    isStreaming?: boolean;
    responseTimeMs?: number;
    createdDate: string;
    requiresApproval?: ApprovalInfo;
}
export interface PendingToolCallInfo {
    messageId: string;
    dbMessageId?: string;
    toolCallId: string;
    riskLevel?: "low" | "medium" | "high";
}
interface ToolCallDisplayProps {
    toolCalls: (BaseToolCall | AgentToolCall)[];
    finished: boolean;
    openPopovers: {
        [key: string]: boolean;
    };
    setOpenPopovers: React.Dispatch<React.SetStateAction<{
        [key: string]: boolean;
    }>>;
    messageId: string;
    agentId?: string;
    allPendingApprovals?: PendingToolCallInfo[];
    onSwitchToAutonomous?: () => void;
    browserCaptureInlinePrompt?: {
        toolNames: string[];
        label: string;
        description: string;
        actionLabel: string;
        isPending: boolean;
        onAction: () => void;
        cancelLabel?: string;
        onCancel?: () => void;
    } | null;
    readOnly?: boolean;
}
export declare function ToolCallDisplay({ toolCalls, finished, openPopovers, setOpenPopovers, messageId, agentId, allPendingApprovals, onSwitchToAutonomous, browserCaptureInlinePrompt, readOnly, }: ToolCallDisplayProps): import("react/jsx-runtime").JSX.Element | null;
export {};
