/** * Image processing utilities: HEIC conversion, EXIF correction, downscaling */ import { LoadedImageInfo } from '../types/index.js'; /** * Check if a file is HEIC format */ export declare function isHeicFile(file: File | Blob): boolean; /** * Convert HEIC to JPEG using heic2any (loaded dynamically) */ export declare function convertHeicToJpeg(blob: Blob): Promise; /** * Read EXIF orientation from an image blob and return the rotation needed * Returns degrees to rotate (0, 90, 180, 270) */ export declare function getExifRotation(blob: Blob): Promise; /** * Load an image element from a blob */ export declare function loadImageElement(blob: Blob): Promise; /** * Downscale an image using step-down sampling for quality */ export declare function downscaleImage(img: HTMLImageElement, maxDimension: number, rotation?: number): { canvas: HTMLCanvasElement; width: number; height: number; }; /** * Full image loading pipeline: HEIC → EXIF → Downscale → Data URL */ export declare function processImage(source: File | Blob | string, configMaxResolution: number | null | undefined): Promise<{ dataUrl: string; info: LoadedImageInfo; }>;