import { Optional } from '../../../common'; import { BehaviorSubject } from 'rxjs'; import { DeviceModel } from '../devices.model'; import { DeviceOpState, DeviceState } from './device.state'; export declare const ModeStateName: 'mode'; export type ModeStateName = typeof ModeStateName; export type Modes>> = { active: DeviceState | undefined; subModes: SubModes; }; export type ModeType = { state?: { mode?: number; }; }; export type ModeIdMap = (state: ModeState) => Optional>; export declare const defaultModeIdMap: ModeIdMap; export declare class ModeState extends DeviceOpState>> { private readonly identifierMap; readonly activeIdentifier: BehaviorSubject>; readonly modes: DeviceState[]; protected readonly inline: boolean; get activeMode(): Optional>; constructor(device: DeviceModel, modes: Optional>[], opType?: number, identifier?: number[], inline?: boolean, identifierMap?: ModeIdMap); parseState(data: ModeType): void; parseOpCommand(opCommand: number[]): void; } //# sourceMappingURL=mode.state.d.ts.map