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