import { AxiosRequestConfig } from 'axios'; import { AuthScope, GraphApiConfig, IOAuthResponse, IPartnerCenterConfig } from '../types/common.types'; export declare class TokenManager { private config; private accessToken; private _refreshToken; private reAuthed; private retry; private readonly scope; constructor(config: IPartnerCenterConfig | GraphApiConfig, scope: AuthScope); getInitializedRefreshToken(): Promise; getAccessToken(scope?: AuthScope): Promise; handleAuthenticationError(err: any, requestConfig: AxiosRequestConfig): Promise>; /** * Authenticates with the Microsoft Partner Center using the provided authentication scope. * * @param {AuthScope} [scope] - Optional parameter representing the scope of the authentication request. * @return {Promise} A promise that resolves to the authentication response object. * @throws {Error} Throws an error if the authentication process fails. */ authenticate(scope?: AuthScope): Promise; /** * Prepares and serializes authentication data for API requests. * * @param {AuthScope} [scope] - Optional scope to override or specify the scope to authenticate to. * @return {string} A URL-encoded string representation of the authentication data. */ private prepareAuthData; private isTokenExpired; private getTenantId; } export declare function initializeHttpAndTokenManager(config: IPartnerCenterConfig | GraphApiConfig, baseURL: string, scope: AuthScope): { agent: import("axios").AxiosInstance; tokenManager: TokenManager; };