import type { Ref } from 'vue'; /** Stable string keys, also compatible with hosts injecting the literal key. */ export declare const CHAT_MESSAGE_SEND_KEY = "chat-message-send"; export declare const CHAT_MESSAGE_CONTEXT_KEY = "chat-message-context"; /** * Provided by the embed to components rendered inside message content * (`customComponents`). Sends `content` as the user through the same path as * the composer, resolving the conversation's configured agent inputs — a * direct `useChat().sendMessage` call would skip that resolution. Resolves * `true` once the message is accepted (including into the outbound queue). */ export type ChatMessageSend = (content: string) => Promise; /** Provided per message bubble to components rendered inside its content. */ export interface ChatMessageContext { messageId: string; role: 'user' | 'assistant'; /** True while this is the newest message in the conversation. */ isLatestMessage: Readonly>; /** True while this message's turn is still streaming. */ streaming: Readonly>; }