import { UploadChangeParam, UploadFile, UploadProps } from 'antd/es/upload'; import { UploadRef } from 'antd/es/upload/Upload'; import React, { ReactNode } from 'react'; import { ImgCropProps } from './type'; export type BeforeUploadValueType = void | boolean | string | Blob | File; export declare const DEFAULT_ACCEPT = "image/png,image/jpg,image/jpeg,pptx"; export interface Props extends Omit, 'onChange' | 'listType'> { size?: number; description?: string | ReactNode; cropConfig?: Partial; children?: ReactNode | undefined; enableCrop?: boolean; listType?: 'picture-card' | 'picture-circle'; checkFile?: boolean; onChange?: (fileList: UploadFile[], info: UploadChangeParam>) => void; onError?: (errorType: ErrorType) => void; } export declare enum ErrorType { SIZE_EXCCEEDS_LIMIT = "SIZE_EXCCEEDS_LIMIT", FILE_FORMAT_ERROR = "FILE_FORMAT_ERROR", UPLOAD_ERROR = "UPLOAD_ERROR" } declare const InternalPictureCardUpload: React.ForwardRefRenderFunction; type InternalPictureCardUploadType = typeof InternalPictureCardUpload; type CompoundedComponent = InternalPictureCardUploadType & { (props: React.PropsWithChildren> & React.RefAttributes): React.ReactElement; }; declare const PictureCardUpload: CompoundedComponent; export default PictureCardUpload;