import * as request from "request"; import { Configuration } from "./configuration"; /** * Authentication logic for api calls */ export interface IAuthentication { /** * Apply authentication settings to header and query params. */ applyToRequest(requestOptions: request.Options, configuration: Configuration): void; /** * Handle 401 response. */ handle401response(): any; } /** * Implements JWT authentication */ export declare class JwtAuth implements IAuthentication { private accessTokenValue; /** * Apply authentication settings to header and query params. */ applyToRequest(requestOptions: request.Options, configuration: Configuration): Promise; /** * Handle 401 response. */ handle401response(): void; private requestToken; }