import { Option } from 'fp-ts/lib/Option'; import { Task } from 'fp-ts/lib/Task'; import { AsyncStream } from '../uri'; /** * Provides a safe way to read a value at a particular index from * an {@link AsyncStream}. * * If the index is negative, `None` will be returned. * * @export * @param {number} i The index to lookup. * @return {(fa: AsyncStream) => Task>} A function that takes a * stream to lookup at given index. * * @__PURE__ */ export declare function lookup(i: number): (fa: AsyncStream) => Task>; /** * Provides a safe way to read a value at a particular index from * an {@link AsyncStream}. * * If the index is negative, `None` will be returned. * * @export * @param {number} i The index to lookup. * @param {AsyncStream} fa The input stream * @return {Task>} An option of the element at index. * * @__PURE__ */ export declare function lookup(i: number, fa: AsyncStream): Task>;