import { AuthorizationCodeRequest, AuthenticationResult, AuthorizationCodeClient, Authority, INetworkModule } from "@azure/msal-common"; import { BrowserCacheManager } from "../cache/BrowserCacheManager"; export declare type InteractionParams = {}; /** * Abstract class which defines operations for a browser interaction handling class. */ export declare abstract class InteractionHandler { protected authModule: AuthorizationCodeClient; protected browserStorage: BrowserCacheManager; protected authCodeRequest: AuthorizationCodeRequest; constructor(authCodeModule: AuthorizationCodeClient, storageImpl: BrowserCacheManager); /** * Function to enable user interaction. * @param requestUrl */ abstract initiateAuthRequest(requestUrl: string, authCodeRequest: AuthorizationCodeRequest, params: InteractionParams): Window | Promise | Promise; /** * Function to handle response parameters from hash. * @param locationHash */ handleCodeResponse(locationHash: string, authority: Authority, networkModule: INetworkModule): Promise; protected updateTokenEndpointAuthority(cloudInstanceHostname: string, authority: Authority, networkModule: INetworkModule): Promise; }