import { Stream } from '@motorcycle/types'; /** * Applies a function to all Sinks in a list of Sinks. * * @name mapList(f: (value: A, index: number) => B, sinksList$: Stream>): Stream> * @example * import { mapList } from '@motorcycle/stream' * * function Component(sources) { * const { listOfData$ } = sources * * const sinksList$: Stream> = mapList( * data => ChildComponent({ ...sources, data$: now(data) })), * listOfData$, * ) * * const childViews$: Stream> = * mapList(({ view$ }) => view$, sinksList$) * * ... * } */ export declare const mapList: MapList; export declare type MapList = { (f: (value: A, index: number) => B, list$: Stream>): Stream>; (f: (value: A, index: number) => B): (list$: Stream>) => Stream>; };