import type { SnapshotFromStore, AnyStore } from "./types.js";
/**
* Creates a selector which subscribes to the store and selects a value from the
* store's snapshot, using an optional comparison function.
*
* @deprecated Use `useSelector` from `@xstate/store-solid` instead.
* @example
*
* ```tsx
* import { donutStore } from './donutStore.ts';
* import { useSelector } from '@xstate/store/solid';
*
* function DonutCounter() {
* const donutCount = useSelector(donutStore, (state) => state.context.donuts);
*
* return (
*
*
*
* );
* }
* ```
*
* @param store The store, created from `createStore(…)`
* @param selector A function which takes in the snapshot and returns a selected
* value from it
* @param compare An optional function which compares the selected value to the
* previously selected value
* @returns A read-only signal of the selected value
*/
export declare function useSelector(store: TStore, selector: (snapshot: SnapshotFromStore) => T, compare?: (a: T | undefined, b: T) => boolean): () => T;