import React from 'react'; export type IAuthContext = { authenticated: boolean; username: string; setAuthenticated: (isAuthenticated: boolean) => void; setUsername: (username: string) => void; }; /** * Authenticated context * * @remarks * authenticated is a boolean value representing logged-in status * * @example * ``` * const { username, authenticated, setAuthenticated } = useContext(AuthContext) * ``` */ export declare const AuthContext: React.Context; type AuthProviderProps = { defaultAuthenticated?: boolean; onLogin?: () => void; onLogout?: () => void; children?: React.ReactNode; }; /** * Provider for AuthContext * @remarks * Should wrap any & all components where authenticated state is used * @example * ```javascript * * * * * * * * ``` */ export declare const AuthProvider: ({ onLogin, onLogout, children }: AuthProviderProps) => import("react/jsx-runtime").JSX.Element; export {};