import { Tokens } from './parseTokens.js'; import { AuthorityConfiguration, Fetch, OidcConfiguration, StringMap } from './types.js'; export declare const getFetchDefault: () => typeof fetch; export interface OidcAuthorizationServiceConfigurationJson { check_session_iframe?: string; issuer: string; } export declare class OidcAuthorizationServiceConfiguration { private checkSessionIframe; private issuer; private authorizationEndpoint; private tokenEndpoint; private revocationEndpoint; private userInfoEndpoint; private endSessionEndpoint; constructor(request: any); } export type LoginCallback = { callbackPath: string; }; export type InternalLoginCallback = { callbackPath: string; parsedTokens: Tokens; }; export declare class Oidc { configuration: OidcConfiguration; userInfo: null; tokens?: Tokens; events: Array; private timeoutId; configurationName: string; private checkSessionIFrame; private getFetch; constructor(configuration: OidcConfiguration, configurationName: string, getFetch: () => Fetch); subscribeEvents(func: any): string; removeEventSubscription(id: any): void; publishEvent(eventName: any, data: any): void; static getOrCreate: (getFetch: () => Fetch) => (configuration: any, name?: string) => any; static get(name?: string): any; static eventNames: { service_worker_not_supported_by_browser: string; token_aquired: string; logout_from_another_tab: string; logout_from_same_tab: string; token_renewed: string; token_timer: string; loginAsync_begin: string; loginAsync_error: string; loginCallbackAsync_begin: string; loginCallbackAsync_end: string; loginCallbackAsync_error: string; refreshTokensAsync_begin: string; refreshTokensAsync: string; refreshTokensAsync_end: string; refreshTokensAsync_error: string; refreshTokensAsync_silent_error: string; tryKeepExistingSessionAsync_begin: string; tryKeepExistingSessionAsync_end: string; tryKeepExistingSessionAsync_error: string; silentLoginAsync_begin: string; silentLoginAsync: string; silentLoginAsync_end: string; silentLoginAsync_error: string; syncTokensAsync_begin: string; syncTokensAsync_end: string; syncTokensAsync_error: string; }; _silentLoginCallbackFromIFrame(): void; _silentLoginErrorCallbackFromIFrame(): void; silentLoginCallbackAsync(): Promise; initPromise: any; initAsync(authority: string, authorityConfiguration: AuthorityConfiguration): Promise; tryKeepExistingSessionPromise: any; tryKeepExistingSessionAsync(): Promise; startCheckSessionAsync(checkSessionIFrameUri: any, clientId: any, sessionState: any, isSilentSignin?: boolean): Promise; loginPromise: Promise; loginAsync(callbackPath?: string, extras?: StringMap, isSilentSignin?: boolean, scope?: string, silentLoginOnly?: boolean): Promise; loginCallbackPromise: Promise; loginCallbackAsync(isSilenSignin?: boolean): Promise; synchroniseTokensAsync(refreshToken: any, index: number, forceRefresh: boolean, extras: StringMap, updateTokens: any): any; syncTokensInfoAsync(configuration: any, configurationName: any, currentTokens: any, forceRefresh?: boolean): Promise<{ tokens: any; status: string; nonce: { nonce: any; }; }>; loginCallbackWithAutoTokensRenewPromise: Promise; loginCallbackWithAutoTokensRenewAsync(): Promise; userInfoPromise: Promise; userInfoAsync(noCache?: boolean): Promise; renewTokensPromise: Promise; renewTokensAsync(extras?: StringMap): Promise; destroyAsync(status: any): Promise; logoutSameTabAsync(clientId: string, sub: any): Promise; logoutOtherTabAsync(clientId: string, sub: any): Promise; logoutPromise: Promise; logoutAsync(callbackPathOrUrl?: string | null | undefined, extras?: StringMap): Promise; } export default Oidc; //# sourceMappingURL=oidc.d.ts.map