import type { Observable } from "@knyt/artisan"; import { type Effect } from "./Effect.ts"; import type { ReactiveControllerHost } from "./ReactiveController.ts"; /** * @internal scope: workspace */ export type WatchCurriedFn = >(observable: T) => Effect; /** * Creates an effect that tracks an observable and requests updates * on the host whenever the observable emits a new value while the host is connected. */ export declare function watch>(host: ReactiveControllerHost, observable: T): Effect; export declare function watch(host: ReactiveControllerHost): WatchCurriedFn; //# sourceMappingURL=watch.d.ts.map