signalk-server
Version:
An implementation of a [Signal K](http://signalk.org) server for boats.
36 lines • 1.53 kB
TypeScript
import { StreamBundle as IStreamBundle, Delta, NormalizedDelta, Path, Value, NormalizedMetaDelta } from '@signalk/server-api';
import * as Bacon from 'baconjs';
export declare class StreamBundle implements IStreamBundle {
selfContext: string;
buses: {
[key: Path]: Bacon.Bus<NormalizedDelta>;
};
allPathsBus: Bacon.Bus<NormalizedDelta>;
selfBuses: Record<Path, Bacon.Bus<NormalizedDelta>>;
selfAllPathsBus: Bacon.Bus<NormalizedDelta>;
selfStreams: Record<Path, Bacon.Bus<Value>>;
selfAllPathsStream: Bacon.Bus<Value>;
keys: Bacon.Bus<Path>;
availableSelfPaths: {
[key: Path]: true;
};
metaBus: Bacon.Bus<NormalizedMetaDelta>;
selfMetaBus: Bacon.Bus<NormalizedMetaDelta>;
unfilteredBuses: {
[key: Path]: Bacon.Bus<NormalizedDelta>;
};
unfilteredAllPathsBus: Bacon.Bus<NormalizedDelta>;
constructor(selfId: string);
pushDelta(delta: Delta): void;
push(path: Path, normalizedDelta: NormalizedDelta): void;
getMetaBus(): Bacon.Bus<NormalizedMetaDelta>;
getSelfMetaBus(): Bacon.Bus<NormalizedMetaDelta>;
getBus(path?: Path): Bacon.Bus<NormalizedDelta>;
getSelfStream(path?: Path): Bacon.Bus<Value>;
getSelfBus(path?: Path): Bacon.Bus<NormalizedDelta>;
pushUnfilteredDelta(delta: Delta): void;
getUnfilteredBus(path?: Path): Bacon.Bus<NormalizedDelta>;
getAvailablePaths(): Path[];
}
export declare function toDelta(normalizedDeltaData: NormalizedDelta): Delta;
//# sourceMappingURL=streambundle.d.ts.map