import { Eq } from 'fp-ts/lib/Eq';
import { Task } from 'fp-ts/lib/Task';
import { AsyncStream } from '../uri';
/**
* Tests if a value is a member of an {@link AsyncStream}.
*
* Takes a {@link Eq} of `A` as a single argument which returns the function
* to use to search for a value of type `A` in an {@link AsyncStream}.
*
* **Warning: This function consumes the stream.**
*
* @export
* @template A The value type.
* @param {Eq} E The equality instance.
* @return {(a: A) => (fa: AsyncStream) => Task} A function to
* use to search for a value in the async stream.
*
* @__PURE__
*/
export declare function elem(E: Eq): {
(a: A): (fa: AsyncStream) => Task;
(a: A, fa: AsyncStream): Task;
};