import { Area } from 'react-easy-crop/types'; import Compressor from 'compressorjs'; import { Maybe } from './types'; export declare const resizeImage: (imageFile: File | Blob, options: Compressor.Options) => Promise; /** * This function was adapted from the one in the ReadMe of * https://github.com/DominicTobias/react-image-crop and modified based on the * discussion in https://github.com/ricardo-ch/react-easy-crop/issues/91 and * the release notes here https://github.com/ricardo-ch/react-easy-crop/releases/tag/v4.0.0 */ declare const getCroppedImage: (imageSrc: string, pixelCrop: Area, rotation?: number, canvasLimit?: { height: number; width: number; }, imageFile?: Maybe) => Promise; export default getCroppedImage;