UNPKG

rxpoweredup

Version:

A Typescript RxJS-based library for controlling LEGO Powered UP hubs & peripherals.

14 lines (13 loc) 706 B
import { Observable } from 'rxjs'; import { IHubActionsFeature, IOutboundMessenger } from '../../hub'; import { HubActionInboundMessage } from '../../types'; import { IHubActionsMessageFactory } from './i-hub-actions-message-factory'; export declare class HubActionsFeature implements IHubActionsFeature { private readonly hubActionsMessageFactory; private readonly messenger; readonly willDisconnect: Observable<void>; readonly willSwitchOff: Observable<void>; constructor(hubActionsMessageFactory: IHubActionsMessageFactory, messenger: IOutboundMessenger, inboundMessages: Observable<HubActionInboundMessage>); disconnect(): Observable<void>; switchOff(): Observable<void>; }