export type ToolCallStatus = 'in-flight' | 'succeeded' | 'failed'; export interface ToolCallCardProps { name: string; status: ToolCallStatus; durationMs?: number; args?: unknown; result?: unknown; /** * Compact one-line summary of the args, rendered next to the tool name * in the collapsed header. If omitted, the card derives one via * `toolCallSummary(name, args)` so callers can opt out of computing it. * Pass an explicit `''` to suppress the summary entirely. */ summary?: string; className?: string; } /** * ToolCallCard — renders one tool call with status, duration, args, result. * * Header (collapsed): `[status] toolName summary · duration` * - summary comes from caller or toolCallSummary(name, args) * - status is an animated dot while in-flight, colored badge on completion * * Collapsibility: default-open for 'in-flight' and 'failed' (operator needs * to see detail); default-closed for 'succeeded' (common case — compact). * R1.1 contract. * * Result truncation: string results longer than RESULT_PREVIEW_LINES lines * render with a "Show all N lines" toggle. Prevents one tool call from * eating the chat scroll. */ declare function ToolCallCard({ name, status, durationMs, args, result, summary, className, }: ToolCallCardProps): import("react/jsx-runtime").JSX.Element; export { ToolCallCard };