/// import { URL } from 'url'; import Response from './Response'; declare class Request { ['constructor']: typeof Request; compressionEnabled: boolean; coreOptions: any; data: any; method: string; reqHeaders: any; resOptions: any; sendDataAs: any; streamEnabled: boolean; timeoutTime: number; url: URL; constructor(url: string, method: string); query(a1: any, a2: any): this; path(relativePath: any): this; body(data: any, sendAs?: any): this; header(key: any, val?: any): this; timeout(timeout: number): this; option(name: any, value: any): this; stream(): this; compress(): this; send(): Promise; } export default Request;