import { AxiosRequestConfig } from 'axios'; import { GraphApiConfig, IOAuthResponse, IPartnerCenterConfig } from '../types/common.types'; export declare class TokenManager { private config; private accessToken; private _refreshToken; private reAuthed; private retry; private scope; constructor(config: IPartnerCenterConfig | GraphApiConfig, scope: string); getInitializedRefreshToken(): Promise; getAccessToken(resource?: string): Promise; handleAuthenticationError(err: any, requestConfig: AxiosRequestConfig): Promise>; authenticate(resource?: string): Promise; private prepareAuthData; private isTokenExpired; private getTenantId; } export declare function initializeHttpAndTokenManager(config: IPartnerCenterConfig | GraphApiConfig, baseURL: string, scope: string): { agent: import("axios").AxiosInstance; tokenManager: TokenManager; };