import { autorun, reaction } from "mobx"; import { type EffectCallback } from "react"; /** * Run code once on component mount. Shorthand for useEffect(effect, []). */ export declare function useMounted(effect: EffectCallback): void; /** * Initialize a mobx autorun watcher on component mount, and * clean it up when the component unmounts. */ export declare function useAutorun(view: Parameters[0]): void; /** * Initialize a mobx reaction watcher on component mount, and * clean it up when the component unmounts. */ export declare function useReaction(expression: Parameters>[0], effect: Parameters>[1], opts?: Parameters>[2]): void; /** * Run a callback on every animation frame. Cleans up * after component unmount. */ export declare function useAnimationFrame(callback: () => void): void;