import{e as r}from"./request-14d7fed5.js";import{J as o}from"./index-25eb6331.js";let i=o();const l=e=>r({url:"/api/share/create",method:"POST",data:e}),d=e=>r({url:"/api/share/info/".concat(e),method:"GET",config:{showDefaultMsg:!1}}),u=e=>r({url:"/api/share/verify",method:"POST",data:e}),f=e=>r({url:"/api/share/files",method:"POST",data:e,showDefaultMsg:!1}),S=(e,t,a)=>{const s=new URLSearchParams({path:t,...a&&{password:a}});return i.serverAddress+"/api/share/download/".concat(e,"?").concat(s.toString())},c=(e={})=>r({url:"/api/share/list",method:"GET",data:e}),m=e=>r({url:"/api/share/".concat(e),method:"DELETE"}),p=()=>r({url:"/api/share/expired",method:"DELETE"});export{S as a,d as b,l as c,c as d,m as e,p as f,f as g,u as v};
