import type { Observable, Observer, Subscription } from "@knyt/artisan"; import type { ReactiveController, ReactiveControllerHost } from "./ReactiveController.ts"; /** * A controller and observer that requests a host update when a new value is received. * * @remarks * * This controller maintains strong references to the observable, host, and itself as the observer. * As long as the host is connected, the subscription remains active. By acting as its own observer, * the controller ensures it is not garbage collected while attached to the host. When the host is * discarded, the observer and its subscription are also discarded. */ export declare class HostUpdater implements ReactiveController, Observer { #private; readonly subscription: Subscription; constructor(host: ReactiveControllerHost, observable: Observable); next(): void; hostConnected?: () => void; } //# sourceMappingURL=HostUpdater.d.ts.map