import { State } from '../../helper/state'; import Connection from '../../helper/connection'; /** * The MethodSelectionState negotiates * with the server about the proper authentication method * specific for socks5 * @remarks * References: {@link https://www.rfc-editor.org/rfc/rfc1928#section-3} */ export declare class MethodSelectionState extends State { /** * The accepted authentication method by the server */ private method?; /** * Parse server response * @returns void */ parse(): void; /** * Continues to authenticate procedure if the server has * Accepted the suggested authentication method * @returns void */ reply(): void; } export declare class RequestState extends State { /** * Corresponding handler function to the command type (Connect | bind | associate) */ handler?: (connection: Connection) => void; /** * Select the handler function from handlers */ parse(): void; /** * Execute the handler function */ reply(): void; }