Optionalparent: MiddlewareStateRegistryClear all state in this scope.
Create a child scope that inherits from this registry.
Get parent registry if exists.
Check if state exists in this scope or parent scopes.
Get all keys in this scope (not including parent).
Lookup state by key. Walks up hierarchy if not found locally.
State key to find
ObservableState or undefined if not found
Provide/register state in this scope.
Unique key for this state
Initial value
ObservableState for updates
Remove state from this scope.
State key to remove
true if removed, false if not found
Async wait for state to be provided.
State key to wait for
Timeout in ms (default 30000)
Promise resolving to ObservableState
Registry for middleware shared state with hierarchical scoping. Supports late-join discovery and reactive updates.