import{l as e,n as t}from"./index-kSn5YXd0.js";var n=e(),r=e=>t({url:`/api/share/create`,method:`POST`,data:e}),i=e=>t({url:`/api/share/info/${e}`,method:`GET`,config:{showDefaultMsg:!1}}),a=e=>t({url:`/api/share/verify`,method:`POST`,data:e}),o=e=>t({url:`/api/share/files`,method:`POST`,data:e,config:{showDefaultMsg:!1}}),s=(e,t,r)=>{let i=new URLSearchParams({path:t,...r&&{password:r}});return`${n.serverAddress}/api/share/download/${e}?${i.toString()}`},c=(e={})=>t({url:`/api/share/list`,method:`GET`,data:e}),l=e=>t({url:`/api/share/${e}`,method:`DELETE`}),u=()=>t({url:`/api/share/expired`,method:`DELETE`}),d=()=>t({url:`/api/share/all`,method:`DELETE`}),f=(e={})=>t({url:`/api/share/export`,method:`get`,data:e,config:{responseType:`blob`,showDefaultMsg:!1,responseIntercept:!1}});export{f as a,i as c,l as i,c as l,d as n,s as o,u as r,o as s,r as t,a as u};