/** * @module exome/react */ import { type Exome } from "exome"; /** * Subscribes to store instance update events and trigger updates to component accordingly. * * @example: * ```ts * import { useStore } from "exome/react" * import { counterStore } from "./counter.store.ts" * * function App() { * const { count, increment } = useStore(counterStore) * * return ( * * ); * } * ``` */ export declare const useStore: (store: T) => Readonly;