//#region src/useSelector.d.ts interface UseSelectorOptions { compare?: (a: TSelected, b: TSelected) => boolean; } type SelectionSource = { get: () => T; subscribe: (listener: (value: T) => void) => { unsubscribe: () => void; }; }; /** * Selects a slice of state from an atom or store and subscribes the component * to that selection. * * This is the primary Preact read hook for TanStack Store. Use it when a * component only needs part of a source value, or omit the selector to * subscribe to the whole value. * * @example * ```tsx * const count = useSelector(counterStore, (state) => state.count) * ``` * * @example * ```tsx * const value = useSelector(countAtom) * ``` */ declare function useSelector>(source: SelectionSource, selector?: (snapshot: TSource) => TSelected, options?: UseSelectorOptions): TSelected; //#endregion export { UseSelectorOptions, useSelector }; //# sourceMappingURL=useSelector.d.ts.map