import { EventStream } from "../EventStream"; /** * Returns a single-value EventStream from the given promise. If promise is rejected, * an error event will be emitted instead of value. * * @param promise Promise to follow * @param abort Optional flag whether or not to call `promise.abort` if all subscribers * have been removed from the created stream. * * @example * * const response = F.fromPromise(fetch("/my-api.json")) * * @public */ export declare function fromPromise(promise: Promise, abort?: boolean): EventStream;