import "./map"; import Observable from "./observable"; import { Property } from "./observable"; import { Function0, Function1, Function2, Function3, Function4, Function5, Function6 } from "./types"; /** Combines Properties, EventStreams and constant values so that the result Property will have an array of the latest values from all sources as its value. The inputs may contain both Properties and EventStreams. ```js property = Bacon.constant(1) stream = Bacon.once(2) constant = 3 Bacon.combineAsArray(property, stream, constant) # produces the value [1,2,3] ``` * @param streams streams and properties to combine */ export declare function combineAsArray(...streams: (Observable | Observable[])[]): Property; /** Combines given *n* Properties and EventStreams using the given n-ary function `f(v1, v2 ...)`. To calculate the current sum of three numeric Properties, you can do ```js function sum3(x,y,z) { return x + y + z } Bacon.combineWith(sum3, p1, p2, p3) ``` */ export declare function combineWith(fn: Function0): Property; export declare function combineWith(a: Observable, fn: Function1): Property; export declare function combineWith(a: Observable, b: Observable, fn: Function2): Property; export declare function combineWith(a: Observable, b: Observable, c: Observable, fn: Function3): Property; export declare function combineWith(a: Observable, b: Observable, c: Observable, d: Observable, fn: Function4): Property; export declare function combineWith(a: Observable, b: Observable, c: Observable, d: Observable, e: Observable, fn: Function5): Property; export declare function combineWith(a: Observable, b: Observable, c: Observable, d: Observable, e: Observable, f: Observable, fn: Function6): Property; export declare function combineWith(observables: Observable[], fn: Function): Property; export declare function combineWith(fn: Function1, a: Observable): Property; export declare function combineWith(fn: Function2, a: Observable, b: Observable): Property; export declare function combineWith(fn: Function3, a: Observable, b: Observable, c: Observable): Property; export declare function combineWith(fn: Function4, a: Observable, b: Observable, c: Observable, d: Observable): Property; export declare function combineWith(fn: Function5, a: Observable, b: Observable, c: Observable, d: Observable, e: Observable): Property; export declare function combineWith(fn: Function6, a: Observable, b: Observable, c: Observable, d: Observable, e: Observable, f: Observable): Property; export declare function combineWith(fn: Function, observables: Observable[]): Property; export declare const combine: typeof combineWith; /** @hidden */ export declare function combineTwo(left: Observable, right: Observable, f: Function2): Property;