import { Observable } from './observable'; /** * Combines multiple observables into a single observable object. * * The Combine class creates a new observable that contains the current values * of all input observables as properties. When any input observable changes, * the combined observable will emit a new value with all current values. * * @example * ```typescript * const nameObs = new Observable('John') * const ageObs = new Observable(25) * const isActiveObs = new Observable(true) * * const combined = combine({ * name: nameObs, * age: ageObs, * isActive: isActiveObs, * }) * * // combined.value will be: { name: "John", age: 25, isActive: true } * * // Subscribe to changes in the combined observable * combined.subscribe((newValue, prevValue) => { * console.log('Combined value changed:', newValue) * }) * * // Changing any input observable will trigger the combined observable * nameObs.setValue('Jane') // combined.value becomes { name: "Jane", age: 25, isActive: true } * ``` * */ export declare const combine: >(observables: { [K in keyof T]: Observable; }) => Combine; declare class Combine> extends Observable { private observables; private unsubscribers; constructor(observables: { [K in keyof T]: Observable; }); private updateCombinedValue; dispose(): void; } export {}; //# sourceMappingURL=combine.d.ts.map