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