import type { CanvasGeometry } from './img-cropper-worker.svelte'; import type { CropperCanvas, CropperImage, CropperSelection } from 'cropperjs'; type Rect = { left: number; top: number; right: number; bottom: number; }; export declare const detectMimeFromUrl: (url: string) => string | null; export declare const computeImageScale: (transform: number[]) => number; export declare const computeNaturalOutputSize: (params: { displayWidth: number; displayHeight: number; imageScale: number; }) => { width: number; height: number; }; export declare const computeLocalAABB: (params: { matrix: number[]; width: number; height: number; }) => Rect; export declare const rectCoversRect: (inner: Rect, outer: Rect, tolerance?: number) => boolean; export declare const handleCoverCheck: (params: { event: Event; image: CropperImage; canvas: CropperCanvas; }) => void; export declare const fitInContainer: (params: { ratio: number; containerWidth: number; containerHeight: number; }) => { width: number; height: number; }; /** * Applies the minimum canvas size by scaling the whole rect, bounded by `maxWidth` / `maxHeight`, and rounds to whole pixels. * The minimums are soft: a container smaller than them wins, and the returned canvas is smaller than `MIN_CANVAS_WIDTH` / `MIN_CANVAS_HEIGHT`. */ export declare const resolveCanvasGeometry: (params: { aspectRatio: number | null; width: number; height: number; maxWidth: number; maxHeight: number; }) => CanvasGeometry; export declare const handleSelectionBoundary: (params: { event: Event; selection: CropperSelection; canvas: CropperCanvas; }) => void; export {};