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