import { __isKnytReference, OBSERVABLE_PROPERTY_NAME, type Observable, type ObservableInterop, type Reference, type Subscription } from "@knyt/artisan"; import type { BasicEvent } from "../BasicEvent.ts"; import type { ReactiveControllerHost } from "../ReactiveController.ts"; import type { Context } from "./types.ts"; export declare abstract class BaseConsumer implements Context.ConsumerType { #private; /** @internal scope: package */ protected abstract get _contextKey(): symbol; constructor(host: ReactiveControllerHost, { initialValue, target: dispatcher, onUpdate, }: { initialValue: T; target: Reference.Maybe; onUpdate?: Reference.UpdateHandler; }); subscribe(subscriber: Observable.Subscriber): Subscription; hostConnected(): void; hostDisconnected(): void; get value(): T; readonly get: () => T; readonly [__isKnytReference] = true; asInterop(): ObservableInterop; [Symbol.observable](): ObservableInterop; [OBSERVABLE_PROPERTY_NAME](): ObservableInterop; } //# sourceMappingURL=BaseConsumer.d.ts.map