/*! * Copyright (c) 2026 Interop Alliance. All rights reserved. */ /** * The session provider: instantiates the wallet-mode auth store once (from the * app's config + store registry) and shares it through React context. The hooks * (`useAuthStore`, `useSession`, ...) read the bound store from this context. * * One provider per app; wrap the router (or the whole tree) in it. The store is * created lazily in a `useState` initializer so it survives re-renders and is * never rebuilt. */ import { type ReactNode } from 'react'; import type { StoreRegistry, WasAppConfig } from '../config.js'; import { type WasAuthStore } from '../session/authStore.js'; /** * The bound auth store, or `null` outside a provider. The `useAuthStore` hook * throws a helpful error on the `null` case. */ export declare const WasSessionContext: import("react").Context; /** * Provides the wallet-mode session store to the tree beneath it. * * @param props {object} * @param props.config {WasAppConfig} the app-wide configuration * @param props.registry {StoreRegistry} the per-collection hydrate/patch * handlers * @param props.children {ReactNode} * @returns {ReactNode} */ export declare function WasSessionProvider({ config, registry, children }: { config: WasAppConfig; registry: StoreRegistry; children: ReactNode; }): ReactNode; //# sourceMappingURL=WasSessionProvider.d.ts.map