/* COPYRIGHT Esri - https://js.arcgis.com/5.1.0/LICENSE.txt */
import{__decorate as e}from"tslib";import{JSONSupport as t}from"../../core/JSONSupport.js";import{property as r}from"../../core/accessorSupport/decorators/property.js";import{subclass as o}from"../../core/accessorSupport/decorators/subclass.js";let s=class extends t{};e([r({type:String,json:{write:!0}})],s.prototype,"text",void 0),e([r({type:String,json:{write:!0}})],s.prototype,"to",void 0),s=e([o("esri.rest.support.TranslateResult.Translation")],s);let a=class extends t{constructor(e){super(e),this.detectedLanguage="en",this.detectedLanguageScore=-1}};e([r({type:String,json:{write:!0}})],a.prototype,"key",void 0),e([r({type:String,json:{read:{source:"detectedLanguage.language"},write:{target:"detectedLanguage.language"}}})],a.prototype,"detectedLanguage",void 0),e([r({type:Number,json:{read:{source:"detectedLanguage.score"},write:{target:"detectedLanguage.score"}}})],a.prototype,"detectedLanguageScore",void 0),e([r({type:[s],json:{write:!0}})],a.prototype,"translations",void 0),a=e([o("esri.rest.support.TranslateResult")],a);export{a as TranslateResult,s as Translation};
