/** * A polled function used by [fromPoll](../globals.html#frompoll) */ import { EventLike, EventStream, EventStreamSeed, Scope } from "./abstractions"; export declare type PollFunction = () => EventLike; /** Polls given function with given interval. When there are subscribers to the stream. Polling ends permanently when `f` returns an End event. * @param delay poll interval in milliseconds * @param poll function to be polled. Can return either V, Event or an array of Event. In the latter cases the End event can be used to stop polling. * @typeparam V Type of stream elements */ export declare function fromPoll(delay: number, poll: PollFunction, scope: Scope): EventStream; export declare function fromPoll(delay: number, poll: PollFunction): EventStreamSeed;