interface UseStreamReturnSvelte binding return type for useStream. Reactive
projections are exposed as getters on a stable object so templates
can read stream.messages directly without a .value / .current
hop and $derived wrappers auto-track the getter read.
Destructuring (const { messages } = stream) breaks reactivity ā
this is a Svelte 5 constraint and applies to every getter-object
pattern. Access fields through the live stream handle instead.
Promise that settles when the current thread's initial hydration
completes. Useful in SvelteKit load() handlers (or any
async-init site) to block until the controller has reconciled
with server-held state.
v2 escape hatch ā returns the bound ThreadStream.