import React from 'react'; import PropTypes from 'prop-types'; import Base from './base'; import Upload from './upload'; import type { CardProps, CardState, ObjectFile, UploadFile } from './types'; /** * Upload.Card * 继承 Upload 的 API,除非特别说明 */ declare class Card extends Base { static displayName: string; static propTypes: { prefix: PropTypes.Requireable; locale: PropTypes.Requireable; children: PropTypes.Requireable; value: PropTypes.Requireable; defaultValue: PropTypes.Requireable; onPreview: PropTypes.Requireable<(...args: any[]) => any>; onChange: PropTypes.Requireable<(...args: any[]) => any>; onRemove: PropTypes.Requireable<(...args: any[]) => any>; onCancel: PropTypes.Requireable<(...args: any[]) => any>; itemRender: PropTypes.Requireable<(...args: any[]) => any>; reUpload: PropTypes.Requireable; showDownload: PropTypes.Requireable; onProgress: PropTypes.Requireable<(...args: any[]) => any>; isPreview: PropTypes.Requireable; renderPreview: PropTypes.Requireable<(...args: any[]) => any>; }; static defaultProps: { prefix: string; locale: Partial<{ card: { cancel: string; addPhoto: string; download: string; delete: string; }; drag: { text: string; hint: string; }; upload: { delete: string; }; image: { cancel: string; addPhoto: string; download: string; delete: string; }; }> & { momentLocale?: string | undefined; }; showDownload: boolean; onChange: () => void; onPreview: () => void; onProgress: () => void; }; constructor(props: CardProps); uploaderRef: InstanceType; componentDidMount(): void; componentDidUpdate(): void; static getDerivedStateFromProps(nextProps: CardProps, prevState: CardState): { value: ObjectFile[]; } | null; onProgress: (value: UploadFile[], targetItem: UploadFile) => void; onChange: (value: Array, file: UploadFile) => void; isUploading(): boolean; saveRef(ref: InstanceType | null): void; updateUploaderRef(uploaderRef: InstanceType): void; render(): React.JSX.Element; } declare const _default: typeof Card; export default _default;