UNPKG

@iotize/ionic

Version:

Iotize specific building blocks on top of @ionic/angular.

20 lines (19 loc) 604 B
import { Observable } from 'rxjs'; export declare class SwitchableStreamMonitor<DataType> { private toggle; sources: Record<string, { id: string; stream: Observable<any>; }>; stream: Observable<any>; private currentSourceId; constructor(initalSource: Record<string, { id: string; stream: Observable<any>; }>, defaultStream: string); getCurrentSourceId(): string; addStream(id: string, obs: Observable<any>): void; getStream(id: string): Observable<any>; useSource(sourceId: string): void; asObservable(): Observable<any>; }