APIinterface StateSignal<State> {(): State;subscribe(onChange: (value: State) => void): () => void;}StateSignal@typeState