import React from "react" ; import type { UserManagerSettings , User , SessionStatus , SigninPopupArgs , SigninSilentArgs , SigninRedirectArgs , SignoutRedirectArgs , SignoutPopupArgs , QuerySessionStatusArgs , RevokeTokensTypes } from "oidc-client-ts" ; import type { AuthState } from "./AuthState" ; public export interface AuthContextProps extends AuthState { /**
     * UserManager functions. See [UserManager](https://github.com/authts/oidc-client-ts) for more details.
     */ readonly settings : UserManagerSettings ; clearStaleState ( ) : Promise < void > ; removeUser ( ) : Promise < void > ; signinPopup ( args ? ) : Promise < User > ; signinSilent ( args ? ) : Promise < User | null > ; signinRedirect ( args ? ) : Promise < void > ; signoutRedirect ( args ? ) : Promise < void > ; signoutPopup ( args ? ) : Promise < void > ; querySessionStatus ( args ? ) : Promise < SessionStatus | null > ; revokeTokens ( types ? ) : Promise < void > ; startSilentRenew ( ) : void ; stopSilentRenew ( ) : void ; } public export const AuthContext = React . createContext < AuthContextProps | undefined > ( undefined ) ; AuthContext . displayName = "AuthContext" ;