import { EventBus } from "../events/event-bus"; import { StorefrontContext } from "../swish"; import { SwishApi } from "./swish-api-client"; export declare class SwishApiAuth { private readonly context; private readonly api; private readonly eventBus; private readonly tokenUrl; private tokenHasProfile; constructor(api: SwishApi, context: StorefrontContext, eventBus: EventBus, tokenUrl: string); hasProfile(): boolean; hasToken(): boolean; private _renewPromise?; renewToken(): Promise; private _initPromise?; init(): Promise; initCustomer(customerId: string): Promise; initSession(): Promise; initToken(token: string): void; acquireToken(session?: string, customer?: string): Promise; resetSession(): Promise; getTokenData(token: string): any; willTokenExpire(token: string, duration?: number): boolean; hasCustomerToken(): any; hasSessionToken(): any; getTokenBySub(sub: string): string | null; getSessionId(): string | undefined; setSessionId(sessionId: string): void; deleteSessionId(): void; getSwishToken(): string | undefined; setSwishToken(token: string): void; deleteSwishToken(): void; migrateLegacySession(): void; }