export interface UploadedFileProps { /** * The file name as uploaded by the user, including the extension. */ name: string; /** * URL/endpoint to the (temporary) file upload where the file content can be downloaded * again. */ downloadUrl: string; /** * File size, in bytes. */ size: number; /** * Upload state. * * - `success` implies that the upload completed successfully * - `pending` means the upload is in progress * - `error` means something went wrong during the upload process and the user needs to * retry */ state: 'success' | 'pending' | 'error'; /** * Callback to invoke when the user removes the file upload. */ onRemove: () => Promise; /** * Error message(s) to display. */ errors?: string[]; } /** * Presentation of a file/attachment uploaded by an end user. * * The file name, type and size are displayed. Long file names are truncated with an ellipsis when * they overflow. File sizes are displayed in a human-readable format like `14 kB` or `1.1 MB`. * * @todo Uploading state * @todo Upload failed state */ declare const UploadedFile: React.FC; export default UploadedFile;