import type { Box } from "../types.js"; type WatcherCallback = (curr: T, prev: T) => void | Promise | (() => void) | (() => Promise); type WatchOptions = { /** * Whether to eagerly run the watcher before the state is updated. */ immediate?: boolean; /** * Whether to run the watcher only once. */ once?: boolean; }; export declare function watch(box: Box, callback: WatcherCallback, options?: WatchOptions): () => void; export {};