const mobx = require ( "mobx" ) ; import { IAtom } from "mobx" ; export const useStrict = mobx . configure ? ( s => mobx . configure ( { enforceActions : s ? "always" : "never" } ) ) : mobx . useStrict ; export type CreateAtom = ( name : string , onBecomeObservedHandler ? : ( ) => void , onBecomeUnobservedHandler ? : ( ) => void ) => IAtom ; export const createAtom = mobx . createAtom || ( ( name , on , off ) => new mobx . Atom ( name , on , off ) ) ; export interface GlobalState { trackingDerivation : boolean ; } export const getGlobalState = mobx . _getGlobalState || mobx . extras . getGlobalState ;