import React from 'react'; import Cropper from 'cropperjs'; interface ReactCropperElement extends HTMLImageElement { cropper: Cropper; } interface ReactCropperDefaultOptions { scaleX?: number; scaleY?: number; enable?: boolean; zoomTo?: number; rotateTo?: number; } interface ReactCropperProps extends ReactCropperDefaultOptions, Cropper.Options, Omit, 'data' | 'ref' | 'crossOrigin'> { crossOrigin?: '' | 'anonymous' | 'use-credentials' | undefined; on?: (eventName: string, callback: () => void | Promise) => void | Promise; onInitialized?: (instance: Cropper) => void | Promise; } declare const ReactCropper: React.ForwardRefExoticComponent>; export { ReactCropper as Cropper, ReactCropperElement, ReactCropperProps, ReactCropper as default };