"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e,t,r=require("./tauri-d45d58c1.js");function n(e){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(t){switch(t.label){case 0:return[4,r.promisified({cmd:"httpRequest",options:e})];case 1:return[2,t.sent()]}}))}))}(e=exports.ResponseType||(exports.ResponseType={}))[e.JSON=1]="JSON",e[e.Text=2]="Text",e[e.Binary=3]="Binary",(t=exports.BodyType||(exports.BodyType={}))[t.Form=1]="Form",t[t.File=2]="File",t[t.Auto=3]="Auto";var i={request:n,get:function(e,t){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(i){switch(i.label){case 0:return[4,n(r._assign({method:"GET",url:e},t))];case 1:return[2,i.sent()]}}))}))},post:function(e,t,i){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(s){switch(s.label){case 0:return[4,n(r._assign({method:"POST",url:e,body:t},i))];case 1:return[2,s.sent()]}}))}))},put:function(e,t,i){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(s){switch(s.label){case 0:return[4,n(r._assign({method:"PUT",url:e,body:t},i))];case 1:return[2,s.sent()]}}))}))},patch:function(e,t){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(i){switch(i.label){case 0:return[4,n(r._assign({method:"PATCH",url:e},t))];case 1:return[2,i.sent()]}}))}))},delete:function(e,t){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(i){switch(i.label){case 0:return[4,n(r._assign({method:"DELETE",url:e},t))];case 1:return[2,i.sent()]}}))}))},ResponseType:exports.ResponseType,BodyType:exports.BodyType};exports.default=i;
