import React from 'react';
import { SCUserContextType } from '../../../types';
/**
* SCUserContext (Authentication Context)
*
:::tip Context can be consumed in one of the following ways:
```jsx
1. {(user, session, error, loading, logout) => (...)}
```
```jsx
2. const scUserContext: SCUserContextType = useContext(SCUserContext);
```
```jsx
3. const scUserContext: SCUserContextType = useSCUser();
````
:::
*/
export declare const SCUserContext: React.Context;
/**
* #### Description:
* This component keeps current user logged and session; it is exported as we need to wrap the entire app with it
* @param children
* @return
* ```jsx
* {!state.loading && children}
* ```
*/
export default function SCUserProvider({ children }: {
children: React.ReactNode;
}): JSX.Element;
/**
* Let's only export the `useSCUser` hook instead of the context.
* We only want to use the hook directly and never the context component.
*/
export declare function useSCUser(): SCUserContextType;