import { IStorageProvider } from "../storage/storage.interface"; import { AtlassianCallbackResult, AtlassianInstallContext, AtlassianResolvedRuntime, AtlassianSDKOptions, Integration, ITokenCacheStorage } from "../types"; import { OAuthCallbackPayload, OAuthLifecycleAdapter, OAuthLifecycleState, OAuthTokenResponse } from "../strategies/oauth.strategy"; export declare class AtlassianOAuthAdapter implements OAuthLifecycleAdapter { private storage; private options; private cacheStorage; constructor(storage: IStorageProvider, options: AtlassianSDKOptions, cacheStorage: ITokenCacheStorage); resolveScopes(context: AtlassianInstallContext): Promise; buildState(context: AtlassianInstallContext): OAuthLifecycleState; getAuthorizationParams(): Record; buildRuntime(connection: Integration, accessToken: string): AtlassianResolvedRuntime; handleCallbackResult(args: { payload: OAuthCallbackPayload; state: OAuthLifecycleState; tokens: OAuthTokenResponse; }): Promise; getRefreshToken(connection: Integration): string | undefined; getLatestRefreshToken(connection: Integration): Promise; updateConnection(connection: Integration, tokens: OAuthTokenResponse): Promise; getCacheKey(connection: Integration): string; getRefreshLockKey(connection: Integration): string; private getSameCloudSiblings; private normalizeSiteUrl; private writeSameCloudSiblingAccessTokens; private resolveResourceFromSibling; private resolveCallbackProvider; }