import { FC } from 'react'; import { AssistantConversationProcessing, Message } from '../conversation'; interface Props { /** Approve a pending write. Absent outside a live conversation. */ onApprovePendingWrite?: (reference: string) => void; /** Reference currently being approved, so only that card shows a spinner. */ approvingWriteRef?: string | null; message: Message; /** * The processing entry of this message's conversation. It decides what the * bubble shows — waiting copy drawn from the live step, the model's output, or * "Stopped" for a turn that ended with nothing — through * `getAssistantDisplayContent`, the projection every surface shares. * * ★ Optional for hosts that mount the item directly. When it is not passed at * all, `isStreaming` stands in for it, so such a host never sees a turn it is * still streaming labelled "Stopped". */ processing?: AssistantConversationProcessing | null; isStreaming?: boolean; /** This assistant message ended in an error — show the Retry affordance. */ isFailed?: boolean; /** * The most recent assistant turn. Retry is offered here too — a turn can * "complete" with an apology (e.g. a gateway 403 the model reports as text) * without ever tripping `isFailed`, and the user still needs a way to re-run. */ isLastAssistant?: boolean; /** Re-send the last user prompt (wired by AssistantChatArea). */ onRetry?: () => void; } export declare const AssistantMessageItem: FC; export {}; //# sourceMappingURL=AssistantMessageItem.d.ts.map