package core import "context" // ValueState is for client side using to update state type ValueState[T any] interface { Value(ctx context.Context) (T, error) Update(ctx context.Context, newVal T) (T, error) Clear(ctx context.Context) error }