import { IReactionPublic, IReactionOptions } from "mobx"; /** * A simple convenience hook that creates a reaction with provided `expression`, `effect` and `options`. * Reaction will be created only once (will not be disposed/recreated between renders). * Reaction will be automatically disposed when the component is unmounted. * If this reaction creates other reactions, those reactions will NOT be disposed. * In that case create a reaction manually inside a `useEffect` hook as described in * {@link https://mobx-react.js.org/recipes-effects | mobx-react documentation }. * * @param expression * @param effect * @param options */ export declare const useReaction: (expression: (reactionObject: IReactionPublic) => T, effect: (expressionResult: T, reactionObject: IReactionPublic) => void, options?: IReactionOptions | undefined) => void;