import { type Ref } from 'react'; export interface AttachmentUploadHandle { addFiles: (files: FileList | File[]) => void; } export interface Attachment { id?: string; file?: File; filename: string; mimeType: string; size: number; uploading?: boolean; uploaded?: boolean; error?: string; url?: string; } interface AttachmentUploadProps { conversationId?: string | undefined; attachments: Attachment[]; /** The list with a change. Keep its entries as given: an upload's result * replaces its pending entry by identity, on the list as it is when the * upload finishes. */ onAttachmentsChange: (attachments: Attachment[]) => void; disabled?: boolean; maxFiles?: number; maxFileSize?: number; ref?: Ref | undefined; } export default function AttachmentUpload({ conversationId, attachments, onAttachmentsChange, disabled, maxFiles, maxFileSize, ref, }: AttachmentUploadProps): import("react").JSX.Element; export {};