import { Config } from "../core/config"; import { RedirectPayload } from "../utils/url"; import { AuthError, AuthParams, LogoutResult, PublicInfoResult, TokenResult, UserInfoResult } from './types'; export declare class Auth { /** * @ignore */ static config: Config; private dataService; private opener; private interval; private readonly id; private readonly analytics; private state; private codeVerifier; constructor(); private readonly close; private readonly handleMessage; private readonly handleInterval; private readonly subscribe; private readonly unsubscribe; private readonly loginInNewTab; private readonly loginInNewWindow; private readonly handleWindowOpen; private readonly loginByRedirect; readonly login: (params?: AuthParams) => Promise; protected checkState(stateToCheck: string): AuthError | undefined; exchangeCode(code: string, deviceId: string, codeVerifier?: string): Promise>; refreshToken(refreshToken: string, deviceId: string): Promise; logout(accessToken: string): Promise; userInfo(accessToken: string): Promise; publicInfo(idToken: string): Promise; protected oauthSectionFetchHandler(res: Response): Promise; protected redirectWithPayload(payload: RedirectPayload): void; }