define(["require","exports","tslib","../../Validation","./MapProvider","../../Hooks","./tools"],function(e,r,i,o,t,a,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0});c.prototype.execute=function(e,r,i){var t=o.validation.id("layerId",e.layerId,o.validation.never),a=i.create();return n.inline(a.load(),function(){var e=a.findLayer(t);return null!=e?{success:e.removeLayer()}:{success:!1}})},c.action="gcx:wf:arcgis::RemoveLayer",c.suite="gcx:wf:builtin",t=i.__decorate([a.activate(t.MapProvider)],c);function c(){}r.RemoveLayer=t});