import React, { ReactNode } from 'react'; import { DragModeType, ViewModeType } from './cropper'; interface customComponentsProps { (dom: any, key: number | string): ReactNode; } declare type CSSSelector = string; export interface ImageCropperProps { containerWidth?: number; containerHeight?: number; image?: string; title?: string; visible?: boolean; dragMode?: DragModeType; viewMode?: ViewModeType; aspectRatio?: number; modal?: boolean; zoomOnWheel?: boolean; imageMaxSize?: number; okText?: string; okBtn?: ReactNode; getContainer?: HTMLElement | (() => HTMLElement | CSSSelector | null | false) | null | false; mask?: boolean; children?: ReactNode; customComponents?: customComponentsProps; showDeaultToolbar?: boolean; cropBoxMovable?: boolean; autoCropArea?: number; onClose?: () => void; onCropSuccess?: (file: File) => void; onCropFailed?: () => void; } declare const ImageCropper: React.ForwardRefExoticComponent>; export default ImageCropper;