import { UploadedFile } from '../types'; export type UploadItemProps = React.JSX.IntrinsicAttributes & { file: UploadedFile; /** * Is this Item part of a multiple- or single-file UploadInput */ singleFileUpload: boolean; canDelete: boolean; onDelete: () => void; onFocus: (target?: 'button' | 'link') => void; /** * Callback to be called when the file link is clicked. * When provided, you need to manually trigger actions to load/download the file. * * @param file */ onDownload?: (file: UploadedFile) => void; ref?: React.Ref; }; interface UploadItemRef { /** * A method to set focus on the upload item. * @returns {void} */ focus: () => void; /** * A required unique identifier for the upload item. */ id: string | number; /** * An optional status of the upload item. */ status?: string; } export declare enum TEST_IDS { uploadItem = "uploadItem", mediaBody = "mediaBody", link = "link", action = "action" } declare const UploadItem: import("react").ForwardRefExoticComponent & import("react").RefAttributes>; export default UploadItem; //# sourceMappingURL=UploadItem.d.ts.map