UNPKG

@assistant-ui/react

Version:

React components for AI chat.

32 lines 2.17 kB
import { ComponentPropsWithoutRef, type FC } from "react"; import { MessagePrimitive } from "../primitives"; declare const UserMessage: FC; /** * @deprecated Use `UserMessage.Content.Props` instead. This will be removed in 0.6. */ export type UserMessageContentProps = UserMessageContent.Props; declare namespace UserMessageContent { type Element = HTMLDivElement; type Props = MessagePrimitive.Content.Props & ComponentPropsWithoutRef<"div">; } declare const UserMessageContent: import("react").ForwardRefExoticComponent<MessagePrimitive.Content.Props & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>; /** * @deprecated Use `UserMessage.Attachments.Props` instead. This will be removed in 0.6. */ export type UserMessageAttachmentsProps = UserMessageAttachments.Props; declare namespace UserMessageAttachments { type Props = Partial<MessagePrimitive.Attachments.Props>; } declare const UserMessageAttachments: FC<UserMessageAttachmentsProps>; declare const exports: { Root: import("react").ForwardRefExoticComponent<Partial<Omit<Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & { ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined; } & { asChild?: boolean; }, "ref"> & import("react").RefAttributes<HTMLDivElement>, "ref">> & import("react").RefAttributes<HTMLDivElement>>; Content: import("react").ForwardRefExoticComponent<MessagePrimitive.Content.Props & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>; Attachments: FC<Partial<MessagePrimitive.Attachments.Props>>; }; declare const _default: typeof UserMessage & typeof exports; export default _default; //# sourceMappingURL=user-message.d.ts.map