/** * * 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 { CropperProps } from './react-easy-crop'; export interface ImgCropProps { onClose?: () => void; prefixCls?: string; image?: string; aspect?: number; cropShape?: 'rect' | 'round'; showGrid?: boolean; quality?: number; fillColor?: string; zoomWithScroll?: boolean; showZoomSlider?: boolean; rotate?: boolean; minZoom?: number; maxZoom?: number; modalTitle?: string; modalWidth?: number | string; modalOk?: string; modalCancel?: string; modalMaskTransitionName?: string; modalTransitionName?: string; onModalOk?: (file: void | boolean | string | Blob | File) => void; onModalCancel?: () => void; beforeCrop?: (file: File, fileList: File[]) => boolean | Promise; onUploadFail?: (err: Error) => void; cropperProps?: Partial; }