import type { UserManager as OidcClientTsUserManager } from "../vendor/frontend/oidc-client-ts"; import type { NonPostableEvt } from "../tools/Evt"; type Params = Params.Login | Params.GoToAuthServer; declare namespace Params { type Common = { redirectUrl: string; extraQueryParams_local: Record | undefined; transformUrlBeforeRedirect_local: ((url: string) => string) | undefined; }; export type Login = Common & { action: "login"; doNavigateBackToLastPublicUrlIfTheTheUserNavigateBack: boolean; doForceReloadOnBfCache: boolean; interaction: "ensure no interaction" | "ensure interaction" | "directly redirect if active session show login otherwise"; preRedirectHook: (() => void) | undefined; }; export type GoToAuthServer = Common & { action: "go to auth server"; }; export {}; } export declare function getPrSafelyRestoredFromBfCacheAfterLoginBackNavigationOrInitializationError(): Promise; export declare function createLoginOrGoToAuthServer(params: { configId: string; oidcClientTsUserManager: OidcClientTsUserManager; transformUrlBeforeRedirect: ((params: { authorizationUrl: string; isSilent: boolean; }) => string) | undefined; getExtraQueryParams: ((params: { isSilent: boolean; url: string; }) => Record) | undefined; getExtraTokenParams: (() => Record) | undefined; homeUrl: string; stateUrlParamValue_instance: string; evtInitializationOutcomeUserNotLoggedIn: NonPostableEvt; log: typeof console.log | undefined; }): { loginOrGoToAuthServer: (params: Params) => Promise; }; export {};