/** * Store watch helpers. */ import type { Store } from './types'; export type WatchStoreOptions = { /** Call the callback immediately with the current value. */ immediate?: boolean; /** Use deep comparison when determining changes. */ deep?: boolean; /** Custom equality check for selected values. */ equals?: (a: T, b: T) => boolean; }; /** * Watch a selected slice of store state. * * @param store - The store instance * @param selector - Function to select the watched value * @param callback - Called when the selected value changes * @param options - Watch options * @returns Unsubscribe function */ export declare const watchStore: , G extends Record, A extends Record any>, T>(store: Store, selector: (state: S) => T, callback: (value: T, previous: T | undefined) => void, options?: WatchStoreOptions) => (() => void); //# sourceMappingURL=watch.d.ts.map