import type { ToolCall } from '../../../types/ToolCall'; import type { AgentChipData } from '../AgentChip/AgentChip'; import type { ChatMessage } from '../types/ChatMessage'; import type { TransitiveCitation } from '../utils/collectTeamToolCallSummary'; import type { ChatProps } from './ChatProps'; /** * Status variants for tool call chips. * * @private internal helper of `` */ export type ToolCallChipStatus = 'ongoing' | 'done' | 'error'; /** * Metadata rendered inside a single tool call chip. * * @private internal helper of `` */ export type ToolCallChipEntry = { /** * Stable key for React rendering. */ key: string; /** * Tool call represented by this chip. */ toolCall: ToolCall; /** * Chip label text. */ label: string; /** * Current status of the tool call. */ status: ToolCallChipStatus; /** * Optional agent metadata for TEAM or transitive tool calls. */ teamAgentData: AgentChipData | null; /** * Marks entries built for transitive tool calls. */ isTransitive: boolean; }; /** * Precomputed tool-call UI data consumed by ``. * * @private internal helper of `` */ export type ChatMessageToolCallRenderModel = { /** * Tool call chips rendered below the message body. */ readonly toolCallChips: ReadonlyArray; /** * Citations surfaced from nested teammate responses. */ readonly transitiveCitations: ReadonlyArray; }; /** * Inputs used to derive the tool-call UI model for one chat message. * * @private internal helper of `` */ export type CreateChatMessageToolCallRenderModelOptions = { readonly message: ChatMessage; readonly teammates?: ChatProps['teammates']; readonly teamAgentProfiles?: ChatProps['teamAgentProfiles']; readonly locale?: string; readonly toolTitles?: ChatProps['toolTitles']; readonly chatUiTranslations?: ChatProps['chatUiTranslations']; }; /** * Builds the tool-call render model used by ``. * * @private internal helper of `` */ export declare function createChatMessageToolCallRenderModel(options: CreateChatMessageToolCallRenderModelOptions): ChatMessageToolCallRenderModel;