import type { EventListenerObject, EventListener } from "../types/dom"; import type { Consumer, MaybeFuture, Observer, ObserverErrorFunction, ObserverFunction } from "../types/futures"; import type { RenderingScheduler } from "../types/schedulers"; /** * Return the "callable" part of an entity: * - the next method of an Observer * - the handleEvent method of an EventListenerObject * - the function itself, if it's a function */ export declare const callable: (x: (Observer | EventListenerObject | ObserverFunction)) => ObserverFunction | undefined; export declare const asap: (target: Consumer, source: MaybeFuture) => void; /** * Connect an event source to a sink through any compatible interface on any optionally specified scheduler * @param node The node on which the binding is set * @param source A Promise, Observable or EventEmitter * @param next A "next" or "then" handler on the sink side * @param error? An error handler on the sink side * @param complete? a finalisation function */ export declare const subscribe: (node: Node, source: MaybeFuture, next: EventListener, error?: ObserverErrorFunction, complete?: () => void, scheduler?: RenderingScheduler) => import("../types/futures").Subscription | undefined; //# sourceMappingURL=drain.d.ts.map