/*
All material copyright Esri, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
*/
class e{constructor(e,n){this.element=e,this.type="image+type",this.isOpaque="image/jpeg"===n}}function n(e){if(e.byteLength<2)return"unknown";const n=new Uint8Array(e,0,e.byteLength);return 137===n[0]&&80===n[1]?"image/png":71===n[0]&&73===n[1]?"image/gif":66===n[0]&&77===n[1]?"image/bmp":255===n[0]&&216===n[1]?"image/jpeg":"unknown"}export{e as ImageWithType,n as getImageType};
