import{checkArg as e}from"../utilities/checkArg.js";export var FeatureReduction;!function(t){t.applyToEsriApiLayer=async function(t,i){e("json",t).isNotMissing(),e("layer",i).isNotMissing(),i.featureReduction="selection"===t.type?(await import("@arcgis/core/layers/support/FeatureReductionSelection")).default.fromJSON(t):(await import("@arcgis/core/layers/support/FeatureReductionCluster")).default.fromJSON(t)},t.fromEsriApiLayer=function(t){return e("layer",t).isNotMissing(),t.featureReduction?.toJSON()}}(FeatureReduction||(FeatureReduction={}));