/** * @class * Auth handler */ declare class AuthHandler { private _host; private OAuthBaseURL; private OAuthAppId; private OAuthClientId; private OAuthRedirectURL; private OAuthScope; private OAuthResponseType; private authTokenKeyName; private authEmailKeyName; private oauthAccessTokenKeyName; private oauthDateTimeKeyName; private oauthUserUidKeyName; private oauthOrgUidKeyName; private oauthRefreshTokenKeyName; private authorisationTypeKeyName; private authorisationTypeOAUTHValue; private authorisationTypeAUTHValue; private allAuthConfigItems; private oauthHandler; private managementAPIClient; /** True while an OAuth access-token refresh is running (for logging/diagnostics; correctness uses `oauthRefreshInFlight`). */ private isRefreshingToken; /** Serialize OAuth refresh so concurrent API calls await the same refresh instead of proceeding with a stale token. */ private oauthRefreshInFlight; private cmaHost; set host(contentStackHost: any); constructor(); private getCmaHost; setOAuthBaseURL(): Promise; initSDK(): Promise; oauth(): Promise; createHTTPServer(): Promise; openOAuthURL(): Promise; getAccessToken(code: string): Promise; setConfigData(type: string, userData?: any): Promise; setOAuthConfigData(userData: any, type: string): void; setBasicAuthConfigData(userData: any): void; unsetConfigData(type?: string): void; refreshToken(): Promise; getUserDetails(data: any): Promise; oauthLogout(): Promise; isAuthenticated(): boolean; getAuthorisationType(): Promise; isAuthorisationTypeBasic(): Promise; isAuthorisationTypeOAuth(): Promise; checkExpiryAndRefresh: (force?: boolean) => Promise; compareOAuthExpiry(force?: boolean): Promise; restoreOAuthConfig(): void; } declare const _default: AuthHandler; export default _default;