import { Action, ActionSuccess } from "./Action"; /** * An [[Action]] to send a TCP request * * @example * ```typescript * new TCPAction({ * name:"test", * host:"0.0.0.0", * port:8124, * command:"test" * }) * ``` */ export declare class TCPAction implements Action { host: string; port: number; name: string | void; command: string; __variant__: string; /** * @param command the data sent to the TCP server */ constructor({ name, host, port, command }: { name?: string; host: string; port: number; command: string; }); run(): Promise; toJSON(): { host: string; port: number; name: string | void; command: string; __variant__: string; }; static fromJSON(json: { name?: string; host: string; port: number; command: string; }): TCPAction; }