UNPKG

signalk-server

Version:

An implementation of a [Signal K](http://signalk.org) server for boats.

20 lines 833 B
import { ALARM_METHOD, Delta, Path, Zone } from '@signalk/server-api'; import { StreamBundle } from './streambundle'; export interface ZoneMethods { normalMethod?: ALARM_METHOD[] | null; nominalMethod?: ALARM_METHOD[] | null; alertMethod?: ALARM_METHOD[] | null; warnMethod?: ALARM_METHOD[] | null; alarmMethod?: ALARM_METHOD[] | null; emergencyMethod?: ALARM_METHOD[] | null; } export declare class Zones { private streambundle; private sendDelta; private unsubscribesForPaths; constructor(streambundle: StreamBundle, sendDelta: (delta: Delta) => void); sendNormalDelta(path: Path): void; watchForZones(path: Path, zones: Zone[], methods: ZoneMethods): void; } export declare function getMethod(state: string, methods: ZoneMethods): ALARM_METHOD[]; //# sourceMappingURL=zones.d.ts.map