import React from 'react';
import type { CropperProps } from 'react-easy-crop';
export type { RcFile } from 'rc-upload/lib/interface';
export interface ImgCropProps {
    /** 纵横比 默认 1 */
    aspect?: number;
    /** 形状：矩形、圆形 默认 rect*/
    shape?: 'rect' | 'round';
    /** 是否显示网格 */
    grid?: boolean;
    /** 图片质量 默认 0.4*/
    quality?: number;
    /** 填充颜色 */
    fillColor?: string;
    /** 是否支持缩放 */
    zoom?: boolean;
    /** 是否支持旋转 */
    rotate?: boolean;
    /** 固定裁剪大小 */
    fixedCropSize?: {
        width: number;
        height: number;
    };
    /** 最小缩放值 */
    minZoom?: number;
    /** 最大缩放值 */
    maxZoom?: number;
    /** modal title */
    modalTitle?: React.ReactNode;
    /** modal 宽度 */
    modalWidth?: number | string;
    /** modal ok text*/
    modalOk?: string;
    /** modal cancel text*/
    modalCancel?: string;
    /** ok callback */
    onModalOk?: (file: void | boolean | string | Blob | File) => void;
    /** cancel callback */
    onModalCancel?: () => void;
    /** modal 打开之前的回调，若返回false，则不打开弹框 */
    beforeCrop?: (file: File, fileList: File[]) => boolean | Promise<boolean>;
    /** upload fail callback */
    onUploadFail?: (err: Error) => void;
    /** Props of react-easy-crop (* existing props cannot be overridden) */
    cropperProps?: Partial<CropperProps>;
    /** 子节点 */
    children: JSX.Element;
}
