import { Info } from '../robot/info'; import { MockConfig } from './config'; declare const Server: any; declare type MsgCommand = 'open_cabinet' | 'close_cabinet' | 'create_order' | 'put_order' | 'complete_order' | 'cancel_order' | 'set_light' | 'Null:Command'; declare type MsgType = 'ACK' | 'NOTIFY'; declare type MsgEvent = 'upload_info' | 'transfer_message' | 'Null:Event'; declare type MsgErrorCode = 0 | 1 | 2; declare class Message { 'tracking_id'?: string; type: MsgType; event: MsgEvent; command: MsgCommand; data: string; 'error_code': MsgErrorCode; constructor({ trackingId, type, event, command, data, errorCode }: { trackingId?: string; type: MsgType; event: MsgEvent; command: MsgCommand; data: object; errorCode?: MsgErrorCode; }); } interface AckOptions { trackingId: string; command: MsgCommand; errorCode?: MsgErrorCode; } declare class AckMsg extends Message { constructor(options: AckOptions); } declare class Socket { send(data: string): void; on(type: string, cb: (data: string) => void): void; } export declare class Mock { addr: string; info: Info; server: typeof Server; constructor(options?: MockConfig); init(): void; getCurCabinetById(id: number): import("../robot/cabinet").CabinetInfo | undefined; openCabinet(data: { cabinet_id: number; }): void; closeCabinet(data: { cabinet_id: number; }): void; createOrder(): void; putOrder(): void; completeOrder(): void; cancelOrder(): void; setLight({ effect_id }: { effect_id: number; }): void; getClusterInfo(ackMsg: AckMsg, socket: Socket): void; } export {};