type MaybePromise = T | Promise; /** * Creates a reactive watcher that runs a provided function whenever the dependencies change. * * @param depsFn - A function that returns the dependencies to watch. The function is called to track dependencies. * @returns A function that takes an effect function `fn`, which will be executed when the dependencies change. * * @example * const stop = watch(() => state)(() => { * // Effect logic here * }); * * @remarks * The effect function can optionally return a cleanup function, which will be called before the effect re-runs. */ export declare const watch: { (depsFn: () => unknown): (fn: () => MaybePromise | MaybePromise<() => void>) => void; pre(depsFn: () => unknown): (fn: () => MaybePromise | MaybePromise<() => void>) => void; }; export {};