import { HttpRequestConfig } from "../http/HttpRequestConfig"; import { SessionToken } from "./SessionToken"; /** * Interface which manages the access token. Will be creating http calls for different authentication * mechanisms like ServiceAccount Auth through JWT, or OAUTH, or API key. */ export interface Authenticator { getSessionToken(requestConfig?: HttpRequestConfig): Promise; /** * Fetches a new Session Token from IMS and returns the token. */ refreshSessionToken(requestConfig?: HttpRequestConfig): Promise; get clientId(): string; }