/** ******************************** * AuthService interface and hook. ** ******************************** */ export interface UsernameAndPassword { username: string; password: string; } export interface AuthService { isOidcAuthEnabled: () => boolean; isBasicAuthEnabled: () => boolean; isAuthenticated: () => Promise; getUsername: () => Promise; getToken: () => Promise; getUsernameAndPassword: () => UsernameAndPassword | undefined; login: (username: string, password: string) => Promise; refresh: () => Promise; logout: () => Promise; } /** * React hook to get the application Auth service. */ export declare const useAuth: () => AuthService;