import{b as a,r as i,gT as r}from"./bundle.CHKSNOJF.js";function o({id:e,enabled:t}){return a(["/api/documents/docuninja",e],()=>i("GET",r("/api/documents/:id?includeUrl&includePreviews&includeUser",{id:e}),{},{headers:{Authorization:`Bearer ${localStorage.getItem("X-DOCU-NINJA-TOKEN")}`},skipIntercept:!0}).then(n=>n.data.data),{enabled:t??!0,staleTime:1/0})}function s({id:e,enabled:t}){return a(["/api/documents/docuninja/timeline",e],()=>i("POST",r("/api/documents/:id/timeline",{id:e}),{},{headers:{Authorization:`Bearer ${localStorage.getItem("X-DOCU-NINJA-TOKEN")}`},skipIntercept:!0}).then(n=>n.data),{enabled:t??!0,staleTime:1/0})}export{s as a,o as u};
