Stone.js API
    Preparing search index...

    A duck-typed snapshot: whatever the view layer registered in the container under snapshot.

    Duck-typed on purpose. @stone-js/use-view owns the snapshot transport and its XSS-safe serializer; this module never imports it, so the store stays free of any view engine while still hydrating from the very channel the framework already uses. A Vue or Svelte layer that registers the same binding gets hydration with no change here.

    interface SnapshotLike {
        add?: (key: string, value: unknown) => unknown;
        get: <T = unknown>(key: string, fallback?: T) => T;
        set?: (key: string, value: unknown) => unknown;
    }
    Index
    add?: (key: string, value: unknown) => unknown
    get: <T = unknown>(key: string, fallback?: T) => T
    set?: (key: string, value: unknown) => unknown