Object.defineProperty(exports,"__esModule",{value:true});exports.useStytchUser=exports.useStytchSession=exports.useStytchAuthenticationState=exports.useStytch=void 0;var _react=require("react");var _contexts=require("./contexts");var useStytchUser=exports.useStytchUser=function useStytchUser(){return(0,_react.useContext)(_contexts.StytchUserContext);};var useStytchSession=exports.useStytchSession=function useStytchSession(){return(0,_react.useContext)(_contexts.StytchSessionContext);};var useStytch=exports.useStytch=function useStytch(){var client=(0,_react.useContext)(_contexts.StytchContext);if(client===null){throw new Error('useStytch() must be called within a <StytchProvider>.');}return client;};var useStytchAuthenticationState=exports.useStytchAuthenticationState=function useStytchAuthenticationState(){return(0,_react.useContext)(_contexts.StytchAuthenticationStateContext);};