UNPKG

@assistant-ui/react

Version:

React components for AI chat.

26 lines 982 B
import type { Attachment, PendingAttachment, Unsubscribe } from "../../types"; import { MessageRole } from "../../types/AssistantTypes"; export type ComposerRuntimeCore = Readonly<{ attachments: readonly Attachment[]; getAttachmentAccept(): string; addAttachment: (file: File) => Promise<void>; removeAttachment: (attachmentId: string) => Promise<void>; isEditing: boolean; canCancel: boolean; isEmpty: boolean; text: string; setText: (value: string) => void; role: MessageRole; setRole: (role: MessageRole) => void; /** * @deprecated This method will be removed in 0.6.0. Submit feedback if you need this functionality. */ reset: () => void; send: () => void; cancel: () => void; subscribe: (callback: () => void) => Unsubscribe; }>; export type ThreadComposerRuntimeCore = ComposerRuntimeCore & Readonly<{ attachments: readonly PendingAttachment[]; }>; //# sourceMappingURL=ComposerRuntimeCore.d.ts.map