/** * Extracts gain map metadata and the gain map recovery image * from a single JPEG file. * * ISO 21496-1 metadata is preferred when present, XMP (Ultra HDR / Adobe hdrgm) is used as fallback. * * @category Decoding Functions * @group Decoding Functions * @param jpegFile an `Uint8Array` containing and encoded JPEG file * @returns an sdr `Uint8Array` compressed in JPEG, a gainMap `Uint8Array` compressed in JPEG and the parsed metadata * @throws Error if neither ISO 21496-1 nor XMP Metadata is found * @throws Error if Gain map image is not found * @example * import { FileLoader } from 'three' * import { extractGainmapFromJPEG } from '@monogrid/gainmap-js' * * const jpegFile = await new FileLoader() * .setResponseType('arraybuffer') * .loadAsync('image.jpg') * * const { sdr, gainMap, metadata } = extractGainmapFromJPEG(jpegFile) */ export declare const extractGainmapFromJPEG: (jpegFile: Uint8Array) => Promise<{ sdr: Uint8Array; gainMap: Uint8Array; metadata: import("..").GainMapMetadata; }>;