/** * * 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 { OidcClient, UserInfoResponse } from '@forgerock/oidc-client/types'; import type { Readable, Writable } from 'svelte/store'; import type { Maybe } from '../interfaces'; export interface UserStore extends Pick, 'subscribe'> { get: () => Promise; reset: () => void; } export interface UserStoreValue { completed: boolean; error: Maybe<{ code?: Maybe; message: Maybe; troubleshoot: Maybe; }>; loading: boolean; successful: boolean; response: Maybe; } /** * @function initialize - Initializes the user store with a get function and a reset function * @param {Readable} oidcClientStore - The OIDC client store to read the client from * @returns {UserStore} - The user store */ export declare function initialize(oidcClientStore: Readable | undefined): UserStore;