/** * * 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 Modal, { ModalProps } from '../../modal'; import { EasyCropProps, RefProps } from './easyCrop'; import { RcFile } from '../../upload/component/rc-upload/interface'; export declare type IProps = EasyCropProps & { modalProps?: Omit & { onOk: OkType; }; prefixCls?: string; }; export declare type OkType = (e: React.MouseEvent, file?: RcFile) => void; export interface ModalRefProps { cropRef: RefProps | null; modalRef: Modal | null; } export declare const imgCropModal: React.MemoExoticComponent, "video" | "image" | "nonce" | "zoom" | "transform" | "cropSize" | "crop" | "rotation" | "aspect" | "minZoom" | "maxZoom" | "cropShape" | "objectFit" | "showGrid" | "zoomSpeed" | "zoomWithScroll" | "onCropChange" | "onZoomChange" | "onRotationChange" | "onCropAreaChange" | "onCropSizeChange" | "onInteractionStart" | "onInteractionEnd" | "onMediaLoaded" | "restrictPosition" | "mediaProps" | "disableAutomaticStylesInjection" | "initialCroppedAreaPixels" | "initialCroppedAreaPercentages" | "onTouchRequest" | "onWheelRequest" | "setImageRef" | "setVideoRef"> & { showZoomSlider?: boolean | undefined; fillColor?: string | CanvasGradient | CanvasPattern | undefined; type?: string | undefined; quality?: number | undefined; file?: import("../../upload").UploadFile | undefined; onCropComplete?: ((croppedArea: import("./react-easy-crop").Area, croppedAreaPixels: import("./react-easy-crop").Area) => void) | undefined; style?: React.CSSProperties | undefined; className?: string | undefined; fileName?: string | undefined; uid?: number | undefined; } & { modalProps?: (Pick & { onOk: OkType; }) | undefined; prefixCls?: string | undefined; } & React.RefAttributes>>; interface FunCropModalRef { cropRef: React.RefObject; } export declare const FunCropModal: React.MemoExoticComponent) => void) | undefined; onOk?: OkType | undefined; } & Pick, "video" | "image" | "nonce" | "zoom" | "transform" | "cropSize" | "crop" | "rotation" | "aspect" | "minZoom" | "maxZoom" | "cropShape" | "objectFit" | "showGrid" | "zoomSpeed" | "zoomWithScroll" | "onCropChange" | "onZoomChange" | "onRotationChange" | "onCropAreaChange" | "onCropSizeChange" | "onInteractionStart" | "onInteractionEnd" | "onMediaLoaded" | "restrictPosition" | "mediaProps" | "disableAutomaticStylesInjection" | "initialCroppedAreaPixels" | "initialCroppedAreaPercentages" | "onTouchRequest" | "onWheelRequest" | "setImageRef" | "setVideoRef"> & { showZoomSlider?: boolean | undefined; fillColor?: string | CanvasGradient | CanvasPattern | undefined; type?: string | undefined; quality?: number | undefined; file?: import("../../upload").UploadFile | undefined; onCropComplete?: ((croppedArea: import("./react-easy-crop").Area, croppedAreaPixels: import("./react-easy-crop").Area) => void) | undefined; style?: React.CSSProperties | undefined; className?: string | undefined; fileName?: string | undefined; uid?: number | undefined; } & { modalProps?: (Pick & { onOk: OkType; }) | undefined; prefixCls?: string | undefined; } & React.RefAttributes>>; export declare const imgCropModalFun: (props: IProps) => void; export default imgCropModalFun;