/** * 命令类型定义 - 桥接 C# 生成的类型 * * 这个文件作为适配层,将 C# 模型生成的 TypeScript 类型 * 与 WebSocket 协议层连接起来,处理字段名称差异 */ import { CommandType } from './index'; export interface ExampleCommandParameters { exampleField: string; exampleValue: number; } export interface ExampleCommand { commandType: CommandType; commandCode: string; deviceType: string; deviceId: number | number[] | string; operationType: string; parameters?: ExampleCommandParameters; } export type SpecificCommand = ExampleCommand; export interface CommandTypeMap { 'ExampleCommand': ExampleCommand; } export declare function createTypedCommand(commandCode: T, baseProps: Omit): CommandTypeMap[T]; export declare function isExampleCommand(cmd: any): cmd is ExampleCommand; export declare function isSpecificCommand(cmd: any): cmd is SpecificCommand; //# sourceMappingURL=command-types.d.ts.map