import { ScopedModel } from '../create-model'; import { Compare } from '../utils/comparer'; /** * Subscribes to the given model's state * @param model the scoped model to read the state from * @param shouldUpdate compares the previous state from the next * state and re-renders the component and updates the value being * consumed if the comparer function returns true. */ export default function useValue(model: ScopedModel, shouldUpdate?: Compare): S;