import type { Model } from '../model/index.js'; /** * This hook is useful when you only want to subscribe the state of a model, but don't want to use any accessor to trigger a request. * * @param model The model you want to subscribe * @param getSnapshot * Return the data you want whenever the state of the model changes. * Make sure that this function is wrapped by `useCallback`. Otherwise it would cause unnecessary rerender. * @returns The return value of the `getSnapshot` function. */ export declare function useModel(model: Model, getSnapshot: (state: S) => SS): SS;