import type React from 'react'; import type { CommonResumableProps, CommonZoomState, PanGestureCallbacks, PinchGestureCallbacks, SizeVector, TapGestureCallbacks } from '../../commons/types'; export type CropContextResult = { crop: { originX: number; originY: number; width: number; height: number; }; context: { rotationAngle: number; flipVertical: boolean; flipHorizontal: boolean; }; resize?: SizeVector; }; export type CropZoomState = { rotate: T; rotateX: T; rotateY: T; } & CommonZoomState; export type CropZoomTransformState = Omit, 'containerSize' | 'childSize' | 'maxScale'>; export type FlipCallback = (animate?: boolean, cb?: (value: number) => void) => void; export type RotationCallback = (animate?: boolean, clockwise?: boolean, cb?: (value: number) => void) => void; export type CropGestureEventCallBack = (event: CropZoomState) => void; export type CropZoomProps = React.PropsWithChildren<{ cropSize: SizeVector; resolution: SizeVector; onUpdate?: CropGestureEventCallBack; OverlayComponent?: () => React.ReactElement; }> & CommonResumableProps & PanGestureCallbacks & PinchGestureCallbacks & Omit; export interface CropZoomRefType { getState: () => CropZoomState; setTransformState: (state: CropZoomTransformState, animate?: boolean) => void; rotate: RotationCallback; flipHorizontal: FlipCallback; flipVertical: FlipCallback; reset: (animate?: boolean) => void; crop: (fixedWidth?: number) => CropContextResult; } //# sourceMappingURL=types.d.ts.map