export type Unsubscribe = () => void; export type Reducer = (state: ST, action: A) => ST; export type Selector = (state: any) => ST; export type Patcher = (state: any, value: ST) => void; export type StateInitializer = () => T; export type StateUpdater = (state: ST) => ST; export type StateModifier = (state: ST) => void; export type SetState = (newState: ST | StateUpdater) => void; export type UpdateState = (updater: StateModifier) => void;