/** * * This file may have been modified by Bytedance Inc. (“Bytedance Inc.'s Modifications”). * All Bytedance Inc.'s Modifications are Copyright (year) Bytedance Inc.. * * This source code is licensed under the Apache license. * See LICENSE file in the project root for license information. * */ import React from 'react'; import { UploadFile } from '../upload/component/interface'; import { UploadIconProps } from './UploadIcon'; import AntdUpload, { UploadProps } from '../upload/component'; export * from '../upload'; export * from '../upload/component/interface'; export { previewImage } from './utils'; export declare const getFileThumbUrl: (previewFile: ((file: File | Blob) => PromiseLike) | undefined, forceUpdate: () => void, file: UploadFile) => PromiseLike | undefined; export declare type ImageUploadProps = { maxCount: number; uploadIconPosition?: 'left' | 'right'; customUploadIcon?: JSX.Element; wrapWidth?: number; wrapHeight?: number; previewUrl?: (file: UploadFile) => Promise; imgPreviewIcon?: JSX.Element; uploadErrorText?: string; isShowClipper?: boolean; isShowPreview?: boolean; isShowRetry?: boolean; onRetry?: (file: UploadFile) => void; onClip?: (file: UploadFile) => void; defaultUploadText?: string; filterDirtyStatus?: boolean; onPreview?: UploadProps['onPreview']; prefixCls?: UploadProps['prefixCls']; accept?: UploadProps['accept']; customRequest?: UploadProps['customRequest']; data?: UploadProps['data']; defaultFileList?: UploadProps['defaultFileList']; directory?: UploadProps['directory']; disabled?: UploadProps['disabled']; headers?: UploadProps['headers']; iconRender?: UploadProps['iconRender']; method?: UploadProps['method']; multiple?: UploadProps['multiple']; name?: UploadProps['name']; previewFile?: UploadProps['previewFile']; openFileDialogOnClick?: UploadProps['openFileDialogOnClick']; withCredentials?: UploadProps['withCredentials']; action?: UploadProps['action']; fileList?: UploadProps['fileList']; onChange?: UploadProps['onChange']; beforeUpload?: UploadProps['beforeUpload']; progress?: { strokeColor?: string; }; isRequest?: UploadProps['isRequest']; actionIsPopover?: boolean; customSuccessOperation?: (props: UploadIconProps) => JSX.Element; customFailOperation?: (props: UploadIconProps) => JSX.Element; }; export declare type ImageUploadRefAttributes = { uploadRef: React.RefObject; getFileList: () => UploadFile[]; }; declare const ImageUpload: React.ForwardRefExoticComponent>; export default ImageUpload;