import { type VariantProps } from 'class-variance-authority'; import * as React from 'react'; declare const toolCallVariants: (props?: ({ status?: "error" | "pending" | "running" | "success" | null | undefined; } & import("class-variance-authority/types").ClassProp) | undefined) => string; declare const statusIconVariants: (props?: ({ status?: "error" | "pending" | "running" | "success" | null | undefined; } & import("class-variance-authority/types").ClassProp) | undefined) => string; export type ToolCallStatus = 'pending' | 'running' | 'success' | 'error'; export interface ToolCallPart { /** Unique tool call ID */ toolCallId: string; /** Tool name */ toolName: string; /** Tool input/arguments */ args?: Record; /** Tool output/result */ result?: unknown; /** Tool status */ status?: ToolCallStatus; /** Error message if status is error */ error?: string; } interface StatusIconProps { status: ToolCallStatus; className?: string; } declare function StatusIcon({ status, className }: StatusIconProps): React.JSX.Element; declare namespace StatusIcon { var displayName: string; } interface AIToolCallHeaderProps { toolName: string; status: ToolCallStatus; isOpen: boolean; onToggle: () => void; className?: string; } declare function AIToolCallHeader(props: AIToolCallHeaderProps): React.JSX.Element; declare namespace AIToolCallHeader { var displayName: string; } interface ToolCallSectionProps { title: string; icon: React.ReactNode; children: React.ReactNode; className?: string; } declare function ToolCallSection({ title, icon, children, className, }: ToolCallSectionProps): React.JSX.Element; declare namespace ToolCallSection { var displayName: string; } export interface AIToolCallProps extends VariantProps { /** Tool call data */ toolPart: ToolCallPart; /** Whether to expand by default */ defaultOpen?: boolean; /** Controlled open state */ open?: boolean; /** Callback when open state changes */ onOpenChange?: (open: boolean) => void; /** Additional class name */ className?: string; } declare function AIToolCall({ toolPart, defaultOpen, open: controlledOpen, onOpenChange, className, }: AIToolCallProps): React.JSX.Element; declare namespace AIToolCall { var displayName: string; } export interface AIToolCallListProps { /** Array of tool calls */ toolCalls: readonly ToolCallPart[]; /** Whether to expand all by default */ defaultAllOpen?: boolean; /** Tool-call IDs to expand initially in uncontrolled mode */ defaultOpenToolCallIds?: readonly string[]; /** Controlled expanded tool-call IDs */ openToolCallIds?: readonly string[]; /** Called with expanded IDs in current tool-call order */ onOpenToolCallIdsChange?: (ids: readonly string[]) => void; /** Additional class name */ className?: string; } declare function AIToolCallList({ toolCalls, defaultAllOpen, defaultOpenToolCallIds, openToolCallIds: controlledOpenToolCallIds, onOpenToolCallIdsChange, className, }: AIToolCallListProps): React.JSX.Element; declare namespace AIToolCallList { var displayName: string; } export { AIToolCall, AIToolCallHeader, AIToolCallList, StatusIcon, statusIconVariants, ToolCallSection, toolCallVariants, };