import type { IAuthenticationContextInternal, IGetTokenOptions, ISPOBOFlowParameters, ITokenProvider, _OBO3PTokenFunction, OBOTokenFunction } from '../../ITokenProvider'; /** * Class that wraps the ADAL's authentication class * @internal */ export declare class OboTokenProvider implements ITokenProvider { private readonly _oboFirstPartyTokenCallback?; private readonly _oboThirdPartyTokenCallback?; private static _logSource; readonly servicePrincipalId: string; private readonly _authContext; private readonly _serverRelativeUrl; private readonly _spHttpClient; private readonly _cachedTokens; private _oboFirstPartyTokenRequest; private _getTokenQosExtraData; constructor(authContext: IAuthenticationContextInternal, tokenParameters: ISPOBOFlowParameters, _oboFirstPartyTokenCallback?: OBOTokenFunction | undefined, _oboThirdPartyTokenCallback?: _OBO3PTokenFunction | undefined); getToken(resourceEndpoint: string, options?: IGetTokenOptions): Promise; getToken(resourceEndpoint: string, useCachedToken?: boolean): Promise; _ensureState(): Promise; _ensureTelemetry(): Promise; private _getAccessToken; /** * Returns an access token if a valid cached token exists */ private _tryGetCachedAccessTokenOld; /** * Returns an access token if a valid cached token exists */ private _tryGetCachedAccessToken; /** * See the following link for details about handling conditional access policies. * https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-conditional-access-developer */ private _fetchAccessToken; private _getOboAuthToken; private _isTokenExpired; private _exchange1PTokenFor3P; /** * Wraps the ADAL.js callback code with a promise. */ private _fetchAccessTokenSilent; private _fetchAccessTokenFromSecureBroker; private _fetchAccessTokenFromTenant; private _handleOboResponse; private _getOboResponseJson; /** * Adal creates an iframe without the sandbox attribute. * Adal assumes it's being used as a singleton but this will not work for our scenario. */ private _patchAdalAuthContext; } //# sourceMappingURL=OboTokenProvider.d.ts.map