declare const Server: {
    /**
     * Client's Mojang handshake call
     * See http://wiki.vg/Protocol_Encryption#Client
     * @param  {String}   accessToken        Client's accessToken
     * @param  {String}   selectedProfile      Client's selectedProfile
     * @param  {String}   serverid     ASCII encoding of the server ID
     * @param  {String}   sharedsecret Server's secret string
     * @param  {String}   serverkey    Server's encoded public key
     * @param  {Function} cb           (is okay, data returned by server)
     * @async
     */
    join: (accessToken: string, selectedProfile: string, serverid: string, sharedsecret: string, serverkey: string) => Promise<any>;
    /**
     * Server's Mojang handshake call
     * @param  {String}   username     Client's username, case-sensitive
     * @param  {String}   serverid     ASCII encoding of the server ID
     * @param  {String}   sharedsecret Server's secret string
     * @param  {String}   serverkey    Server's encoded public key
     * @param  {Function} cb           (is okay, client info)
     * @async
     */
    hasJoined: (username: string, serverid: string, sharedsecret: string, serverkey: string) => Promise<any>;
};
export = Server;
