/// import ObfsMethod from './obfs'; import Connection from '../helper/connection'; /** * The Http class is an obfuscation method based on the * HTTP protocol */ declare class Http extends ObfsMethod { path: string; name: string; encryption: string; compression: string; method: string; constructor(connection: Connection, type: typeof ObfsMethod.CLIENT | typeof ObfsMethod.SERVER, path: string, compression: string, encryption: string, method: string); /** * Checks if the message format is Appropriate with * this obfuscation method * @param message - The incoming message */ check(message: Buffer): boolean; /** * Begins the handshake process for the encryption * @param callback - Emitted after the handshake process */ handshake(callback: () => void): void; /** * DeObfuscates the obfuscated message * @param message - The obfuscated message */ deObfuscate(message: Buffer): Buffer; /** * Obfuscates the non-obfuscated message * @param message - The non-obfuscated message */ obfuscate(message: Buffer): Buffer; } /** * builds a Http obfuscation method object * @param path - Endpoint path * @param compression - Compression method * @param encryption - Encryption algorithm * @param method - HTTP method */ export declare const http: (path?: string, method?: string, compression?: string, encryption?: string) => (connection: Connection, type?: typeof ObfsMethod.CLIENT | typeof ObfsMethod.SERVER) => Http; export {};