import React from 'react'; import type { Attachment } from '..'; export interface ImageCardProps { /** * @description 文件附件数据对象,包含文件的基本信息 * @descriptionEn File attachment data object containing basic file information */ item: Attachment; /** * @description 文件移除时的回调函数,用于处理文件删除操作 * @descriptionEn Callback function when file is removed for handling file deletion operations */ onRemove?: (item: Attachment) => void; /** * @description 替换当前图片的回调,传入原始附件和新选择的文件 * @descriptionEn Callback to replace current image, receives the original attachment and newly selected file */ onReplace?: (oldItem: Attachment, file: File) => void; /** * @description 组件的CSS类名 * @descriptionEn CSS class name for the component */ className?: string; /** * @description 组件的内联样式对象 * @descriptionEn Inline style object for the component */ style?: React.CSSProperties; } declare const _default: React.ForwardRefExoticComponent>; export default _default;