import type { IScheduler, ISink, IStream, ITime } from '../types.js'; /** * Transform each value in a stream with a function */ export declare class MapStream implements IStream { readonly f: (value: T) => R; readonly source: IStream; constructor(f: (value: T) => R, source: IStream); run(sink: ISink, scheduler: IScheduler): Disposable; } /** * Transform each value in a stream with a function * * stream: -1-2-3-4-> * map(x => x*2): -2-4-6-8-> */ export declare const map: IMapCurry; export declare function eventTryMap(sink: ISink, time: ITime, f: (value: In) => Out, value: In): void; export interface IMapCurry { (f: (value: T) => R, source: IStream): IStream; (f: (value: T) => R): (source: IStream) => IStream; }