import { CSSProperties, default as React } from 'react'; import { CropperProps, CropperRef } from 'react-advanced-cropper'; type CropShape = 'rect' | 'round'; type StencilProps = Record; export interface ImageCropProps extends Omit { /** * Source image URL to crop. */ image: string; /** * Aspect ratio for the rectangle stencil. */ aspect?: number; /** * Additional class name for the wrapper. */ className?: string; /** * Stencil shape. * @default 'rect' */ cropShape?: CropShape; /** * Height of the cropper wrapper. * @default 320 */ height?: number | string; /** * Maximum aspect ratio for the rectangle stencil. */ maxAspect?: number; /** * Minimum aspect ratio for the rectangle stencil. */ minAspect?: number; /** * Called whenever cropper state changes. */ onChange?: (cropper: CropperRef) => void; /** * Whether the stencil grid is visible. * @default true */ showGrid?: boolean; /** * Additional stencil props passed to the underlying stencil component. */ stencilProps?: StencilProps; /** * Width of the cropper wrapper. * @default '100%' */ width?: number | string; /** * Custom styles for the wrapper element. */ wrapperStyle?: CSSProperties; } export declare const ImageCrop: React.ForwardRefExoticComponent>; export {};