import { Functor1 } from 'fp-ts/lib/Functor'; import { FunctorWithIndex1 } from 'fp-ts/lib/FunctorWithIndex'; import { Stream, URI } from './uri'; /** * Maps a {@link Stream} instance to another {@link Stream}. * * @export * @template A The value type. * @template B The new/mapped value type. * @param {(a: A) => B} f The mapper function. * @return {(fa: Stream) => Stream} A function that takes * a {@link Stream} to map. * * @__PURE__ */ export declare function map(f: (a: A) => B): (fa: Stream) => Stream; /** * Maps a {@link Stream} instance to another {@link Stream} with index. * * @export * @template A The value type. * @template B The new/mapped value type. * @param {(i: number, a: A) => B} f The mapper function. * @return {(fa: Stream) => Stream} A function that takes * a {@link Stream} to map. */ export declare function mapWithIndex(f: (i: number, a: A) => B): (fa: Stream) => Stream; /** * The `Functor` category instance for {@link Stream}. */ export declare const Functor: Functor1; /** * The `FunctionWithIndex` category instance for {@link Stream}. */ export declare const FunctorWithIndex: FunctorWithIndex1; /** * @category do notation */ export declare const bindTo: (name: N) => (fa: Stream) => Stream<{ readonly [K in N]: A; }>; /** * @category do notation */ declare const let_: (name: Exclude, f: (a: A) => B) => (fa: Stream) => Stream<{ readonly [K in N | keyof A]: K extends keyof A ? A[K] : B; }>; export { let_ as let };