/** * * Copyright © 2025-2026 Ping Identity Corporation. All right reserved. * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file for details. * **/ import type { Step as SdkStep } from '@forgerock/journey-client/types'; import type { OauthTokens as SdkOauthTokens } from '@forgerock/oidc-client/types'; import type { JourneyOptions as JourneyApiOptionsInit, JourneyOptionsChange as JourneyApiOptionsChange, JourneyOptionsStart as JourneyApiOptionsStart, WidgetConfigOptions as WidgetApiConfigOptions } from './interfaces'; import type { ComponentStoreValue } from './core/component.store'; import type { OAuthTokenStoreValue as OAuthTokenStoreEventValue } from './core/oauth/oauth.store'; import type { UserStoreValue as UserStoreEventValue } from './core/user/user.store'; import type { JourneyStoreValue as JourneyStoreEventValue } from './core/journey/journey.interfaces'; declare const _api: { component: { close: (args?: { reason: "auto" | "external" | "user"; }) => void; open: () => void; subscribe: (this: void, run: import("svelte/store").Subscriber>, invalidate?: () => void) => import("svelte/store").Unsubscriber; }; configure: (options: WidgetApiConfigOptions) => Promise; getStores: () => { journeyStore: import("./core/journey/journey.interfaces").JourneyStore; oauthStore: import("./core/oauth/oauth.store").OAuthStore; userStore: import("./core/user/user.store").UserStore; }; journey: (options?: JourneyApiOptionsInit) => { change: (changeOptions: JourneyApiOptionsChange) => Promise; start: (startOptions?: JourneyApiOptionsStart) => Promise; subscribe: (this: void, run: import("svelte/store").Subscriber<{ journey: JourneyStoreEventValue; oauth: OAuthTokenStoreEventValue; user: UserStoreEventValue; }>, invalidate?: () => void) => import("svelte/store").Unsubscriber; }; protect: { start: (config: import("./core/protect/protect.store").ProtectConfig | import("@forgerock/protect/types").SignalsInitializationOptions) => Promise; getData: () => Promise; pauseBehavioralData: () => void | { error: string; }; resumeBehavioralData: () => void | { error: string; }; }; user: { info(): { get: () => Promise; subscribe: (this: void, run: import("svelte/store").Subscriber, invalidate?: () => void) => import("svelte/store").Unsubscriber; }; logout(): Promise; tokens(): { get: (options?: import("@forgerock/oidc-client").GetTokensOptions) => Promise; subscribe: (this: void, run: import("svelte/store").Subscriber, invalidate?: () => void) => import("svelte/store").Unsubscriber; }; }; }; export type JourneyApi = ReturnType; export type UserInfoApi = ReturnType; export type UserTokensApi = ReturnType; export type ProtectApi = typeof _api.protect; export type JourneyOptions = JourneyApiOptionsInit; export type JourneyOptionsChange = JourneyApiOptionsChange; export type JourneyOptionsStart = JourneyApiOptionsStart; export type WidgetConfigOptions = WidgetApiConfigOptions; export type ComponentEventValue = Pick; export type JourneyStoreValue = JourneyStoreEventValue; export type OAuthTokenStoreValue = OAuthTokenStoreEventValue; export type UserStoreValue = UserStoreEventValue; export type OauthTokens = SdkOauthTokens; export type Step = SdkStep; export {};