import invoker,{PLATFORM_TYPE_ENUM}from"./invoker";function stopTraceReportHandler(e,o){var r=o.resolve,n=o.reject,t=o.containerType,i=o.platformType,a=o.context;if(t){i===PLATFORM_TYPE_ENUM.ANDROID?a&&a((function(o){invoker.removeContinuesEvent(e.traceId),invoker.handleBridgeResponse(o,r,n)}),(function(o){invoker.removeContinuesEvent(e.traceId),invoker.handleBridgeResponse(o,r,n)}),"taurus.common","stopTraceReport",e):i===PLATFORM_TYPE_ENUM.IOS&&a.callHandler("taurus.common.stopTraceReport",Object.assign({},e),(function(o){invoker.removeContinuesEvent(e.traceId),invoker.handleBridgeResponse(o,r,n)}))}else a&&a.call("stopTraceReport",e,(function(o){invoker.removeContinuesEvent(e.traceId),invoker.handleBridgeResponse(o,r,n)}))}invoker.registerAPI("stopTraceReport",{mobile:stopTraceReportHandler}),stopTraceReport.version={android:"1.3.4",ios:"1.3.4"};export default function stopTraceReport(e){return invoker.invoke("stopTraceReport",e)}