import { Point, Rect, Size } from '@zag-js/types'; import { FlipState, CropSourcePoints } from '../image-cropper.types.js'; import '@zag-js/core'; interface Matrix { a: number; b: number; c: number; d: number; e: number; f: number; } interface ImageTransformParams { zoom: number; offset: Point; rotation: number; flip: FlipState; } interface CropExportParams extends ImageTransformParams { crop: Rect; imageRect: Rect; naturalSize: Size; } interface ViewportToNaturalParams extends ImageTransformParams { point: Point; imageRect: Rect; naturalSize: Size; } declare function getImageTransform(params: ImageTransformParams): Matrix; declare function getImageTransformCss(params: ImageTransformParams): string; declare function getNaturalToViewportMatrix(params: Omit): Matrix; declare function viewportToNaturalPoint(params: ViewportToNaturalParams): Point; declare function getCropSourcePoints(params: CropExportParams): CropSourcePoints; declare function getCropSourceRect(params: CropExportParams): Rect; declare function getNaturalCropSize(params: Pick): Size; declare function getCropOutputSize(params: Pick, maxSize?: Size): Size; declare function applyCropExportTransform(ctx: CanvasRenderingContext2D, params: CropExportParams, outputSize: Size): void; export { type CropExportParams, type Matrix, applyCropExportTransform, getCropOutputSize, getCropSourcePoints, getCropSourceRect, getImageTransform, getImageTransformCss, getNaturalCropSize, getNaturalToViewportMatrix, viewportToNaturalPoint };