/** * What a message carries besides its text, such as an image or a file. The counterpart of * `AIMessageAttachment` in StreamChatAI. */ export type AIMessageAttachmentData = { /** `image` shows a thumbnail; `file` shows its name, type and size. An open set. */ kind: 'image' | 'file' | (string & {}); /** Data of its own, such as what an attachment of a kind of your own needs. */ extraData?: Record; /** Its media type, such as `application/pdf`. Without it, the type comes from its name or URL. */ mimeType?: string; /** Its name, such as the file's. */ name?: string; /** Its size, in bytes. */ size?: number; /** Where it is: a web URL, or an object or data URL of something the app holds, such as a photo just picked. */ url?: string; }; /** Its type and size, such as "PDF ยท 2.34 MB". */ export declare const attachmentDetails: (attachment: AIMessageAttachmentData) => string; export type AIMessageAttachmentProps = { attachment: AIMessageAttachmentData; /** Who sent it, which sets the side it leans to. */ role?: 'user' | 'assistant' | (string & {}); className?: string; }; /** * An image or a file on a message: an image as a thumbnail that opens it, a file with its * name, type and size. The counterpart of `AIMessageAttachmentView`. */ export declare const AIMessageAttachment: ({ attachment, className, role, }: AIMessageAttachmentProps) => import("react/jsx-runtime").JSX.Element; //# sourceMappingURL=AIMessageAttachment.d.ts.map