import { AuthenticationResult } from '@azure/msal-browser'; import { IAuthenticationService } from './IAuthenticationService'; export interface IMsalAuthenticationConfig { /** * The client id of the Azure AD application. */ clientId: string; /** * The tenant id of the Azure AD tenant. If not specified, the common endpoint will be used. */ tenantId?: string; /** * The redirect uri to use for the authentication request. If not specified, the current window origin will be used. */ redirectUri?: string; /** * The scopes to use for the authentication request. If not specified, the ./default scope will be used. */ scopes?: string[]; /** * The cache location to use for storing tokens. Defaults to "sessionStorage". */ cacheLocation?: "sessionStorage" | "localStorage"; } /** * This class is used to authenticate the user using MSAL */ export declare class Msal2AuthenticationService implements IAuthenticationService { config: IMsalAuthenticationConfig; protected usePopup: boolean; protected msalObj: any; protected resourceTokenMap: Map; resourceScopeMap: Map; protected get storage(): Storage; constructor(config: IMsalAuthenticationConfig, usePopup?: boolean); protected handleResponse: (resp: AuthenticationResult | null) => void; protected login(resource: string): any; logout(): Promise; clearCache(): Promise; isAuthenticated(): Promise; getAccessToken(resource: string): Promise; }