///
import * as plugins from './smartsocket.plugins';
import { SocketConnection } from './smartsocket.classes.socketconnection';
import { SocketRole } from './smartsocket.classes.socketrole';
import * as SocketIO from 'socket.io';
export interface ISmartsocketConstructorOptions {
port: number;
}
export declare class Smartsocket {
options: ISmartsocketConstructorOptions;
io: SocketIO.Server;
openSockets: plugins.lik.Objectmap;
socketRoles: plugins.lik.Objectmap;
private socketServer;
constructor(optionsArg: ISmartsocketConstructorOptions);
setExternalServer: (serverType: "express" | "http", serverArg: any) => Promise;
/**
* starts smartsocket
*/
start(): Promise;
/**
* stops smartsocket
*/
stop(): Promise;
/**
* allows call to specific client.
*/
clientCall(functionNameArg: string, dataArg: any, targetSocketConnectionArg: SocketConnection): Promise<{}>;
/**
* adds socketRoles
*/
addSocketRoles(socketRolesArray: SocketRole[]): void;
/**
* the standard handler for new socket connections
*/
private _handleSocketConnection(socketArg);
}