import { ZnifferOptions } from "zwave-js"; import { IncomingCommandBase } from "../incoming_message_base.js"; import { ZnifferCommand } from "./command.js"; export interface IncomingCommandZnifferBase extends IncomingCommandBase { } export interface IncomingCommandZnifferInit extends IncomingCommandZnifferBase { command: ZnifferCommand.init; devicePath: string; options: ZnifferOptions; } export interface IncomingCommandZnifferStart extends IncomingCommandZnifferBase { command: ZnifferCommand.start; } export interface IncomingCommandZnifferClearCapturedFrames extends IncomingCommandZnifferBase { command: ZnifferCommand.clearCapturedFrames; } export interface IncomingCommandZnifferGetCaptureAsZLFBuffer extends IncomingCommandZnifferBase { command: ZnifferCommand.getCaptureAsZLFBuffer; } export interface IncomingCommandZnifferStop extends IncomingCommandZnifferBase { command: ZnifferCommand.stop; } export interface IncomingCommandZnifferDestroy extends IncomingCommandZnifferBase { command: ZnifferCommand.destroy; } export interface IncomingCommandZnifferCapturedFrames extends IncomingCommandZnifferBase { command: ZnifferCommand.capturedFrames; } export interface IncomingCommandZnifferSupportedFrequencies extends IncomingCommandZnifferBase { command: ZnifferCommand.supportedFrequencies; } export interface IncomingCommandZnifferCurrentFrequency extends IncomingCommandZnifferBase { command: ZnifferCommand.currentFrequency; } export interface IncomingCommandZnifferSetFrequency extends IncomingCommandZnifferBase { command: ZnifferCommand.setFrequency; frequency: number; } export interface IncomingCommandZnifferGetLRRegions extends IncomingCommandZnifferBase { command: ZnifferCommand.getLRRegions; } export interface IncomingCommandZnifferGetCurrentLRChannelConfig extends IncomingCommandZnifferBase { command: ZnifferCommand.getCurrentLRChannelConfig; } export interface IncomingCommandZnifferGetSupportedLRChannelConfigs extends IncomingCommandZnifferBase { command: ZnifferCommand.getSupportedLRChannelConfigs; } export interface IncomingCommandZnifferSetLRChannelConfig extends IncomingCommandZnifferBase { command: ZnifferCommand.setLRChannelConfig; channelConfig: number; } export interface IncomingCommandZnifferLoadCaptureFromBuffer extends IncomingCommandZnifferBase { command: ZnifferCommand.loadCaptureFromBuffer; data: string; } export type IncomingMessageZniffer = IncomingCommandZnifferClearCapturedFrames | IncomingCommandZnifferGetCaptureAsZLFBuffer | IncomingCommandZnifferInit | IncomingCommandZnifferStart | IncomingCommandZnifferStop | IncomingCommandZnifferCapturedFrames | IncomingCommandZnifferSupportedFrequencies | IncomingCommandZnifferCurrentFrequency | IncomingCommandZnifferSetFrequency | IncomingCommandZnifferDestroy | IncomingCommandZnifferGetLRRegions | IncomingCommandZnifferGetCurrentLRChannelConfig | IncomingCommandZnifferGetSupportedLRChannelConfigs | IncomingCommandZnifferSetLRChannelConfig | IncomingCommandZnifferLoadCaptureFromBuffer;