import e from"@arcgis/core/layers/support/RasterFunction";import{assertNever as r,checkArg as n}from"../utilities/checkArg.js";export var RenderingRule;!function(r){r.toEsriApiRasterFunction=function(r){return n("json",r).isNotMissing(),e.fromJSON(r)},r.fromEsriApiRasterFunction=function(e){return n("rasterFunction",e).isNotMissing(),e.toJSON()}}(RenderingRule||(RenderingRule={}));export var PixelType;function t(e,n){const t=e;switch(t){case"C128":return"c128";case"C64":return"c64";case"F32":return"f32";case"F64":return"f64";case"S16":return"s16";case"S32":return"s32";case"S8":return"s8";case"U1":return"u1";case"U16":return"u16";case"U2":return"u2";case"U32":return"u32";case"U4":return"u4";case"U8":return"u8";case"UNKNOWN":return"unknown";default:return r(t,n)}}function u(e,n){const t=e;switch(t){case"c128":return"C128";case"c64":return"C64";case"f32":return"F32";case"f64":return"F64";case"s16":return"S16";case"s32":return"S32";case"s8":return"S8";case"u1":return"U1";case"u16":return"U16";case"u2":return"U2";case"u32":return"U32";case"u4":return"U4";case"u8":return"U8";case"unknown":return"UNKNOWN";default:return r(t,n)}}!function(e){e.fromEsriApiPixelType=function(e){return!!t(e)?e:u(e,new Error("PixelType.fromEsriApiPixelType: Unrecognized field type."))},e.toEsriApiPixelType=function(e){return!!u(e)?e:t(e,new Error("RenderingRule.toEsriApiPixelType: Unrecognized field type."))}}(PixelType||(PixelType={}));