import { OnOptions, AccessorArray, Accessor } from 'solid-js/types/reactive/signal'; type WatchOptions = OnOptions; type WatchStopHandle = () => void; type WatchDeps = AccessorArray | Accessor | S; type WatchSource = WatchDeps; type WatchCallback = (input: S, prevInput: S | undefined, prev: Prev) => void | Next | Promise; /** * Shorthand for `createEffect(on()))` and return stop handler. * * @see https://solidjs-use.github.io/solidjs-use/shared/watch */ declare function watch(deps: WatchDeps, fn: WatchCallback, options?: OnOptions): () => void; export { WatchCallback, WatchDeps, WatchOptions, WatchSource, WatchStopHandle, watch };