///
import { Socket } from "net";
import { TLSSocket } from "tls";
export declare type CallbackFunction = (err?: NodeJS.ErrnoException | null, result?: T) => void;
export declare type NetStream = Socket | TLSSocket;
export declare type CommandParameter = string | Buffer | number | any[];
export interface ICommand {
name: string;
args: CommandParameter[];
resolve(result: any): void;
reject(error: Error): void;
}
export interface ICommandItem {
command: ICommand;
stream: NetStream;
select: number;
}