/** * normaliseOrientation — bake EXIF rotation into a JPEG's pixels. * * vision-camera writes photos with the camera sensor's native * landscape pixels and an EXIF Orientation tag describing how to * rotate them for display. Most consumers (iOS UIImage, RN's * ``) honour the tag — but enough don't (Sentry breadcrumbs, * share sheets, the cv::Stitcher itself, third-party image * pipelines) that "what's on disk" diverges from "what the user * sees" unless we eagerly normalise. * * This helper round-trips the file through the SDK's native * stitcher module, which decodes the JPEG with EXIF rotation * applied and re-encodes a clean JPEG with no orientation * metadata. Idempotent on already-normalised files. */ export interface NormaliseOrientationResult { /** Image width in pixels AFTER rotation has been applied. */ width: number; /** Image height in pixels AFTER rotation. */ height: number; } /** * Bake the EXIF rotation of `imagePath` into pixels in-place. * * Returns the post-rotation dimensions so the caller can update * its own width/height fields. No-op on platforms that don't * have the native module yet (Android until Phase 3) — falls back * to the input shape so callers don't have to special-case * platform availability. */ export declare function normaliseOrientation(imagePath: string, fallback?: { width: number; height: number; }): Promise; //# sourceMappingURL=normaliseOrientation.d.ts.map