import './image-uploader.less'; import type { ProFormItemProps } from '@ant-design/pro-form'; import type { UploadProps } from 'antd'; import type { UploadFile } from 'antd/lib/upload/interface'; import type { FC } from 'react'; import React from 'react'; import type { ApiType } from './../../../../shared/src/hooks/useAxios/types'; import type { ImageLimit, PreviewLimit } from './utils'; declare type ResponseFormatter = (response: any, file: UploadFile, data: any) => any; export interface ImageUploaderProps extends ProFormItemProps { action?: UploadProps['action']; accept?: UploadProps['accept']; crop?: boolean; maxCount?: number; maxSize?: number; limit?: ImageLimit; multiple?: boolean; urlKey?: string; uidKey?: string; autoTip?: boolean; previewLimit?: PreviewLimit; formatter?: ResponseFormatter; icon?: React.ReactNode; title?: React.ReactNode; dataApi?: ApiType; data?: any; value?: any; onChange?: UploadProps['onChange']; } export declare const ImageUploader: FC; declare const _default: React.ComponentClass | React.FunctionComponent; export default _default;