///
import { EventEmitter } from "events";
import { RequestOptions } from "https";
import { Readable } from "stream";
import { HttpsRequestInterceptor, Method } from "../httpClient/types";
import { IncomingMessage } from "http";
declare class HttpsClient {
private baseUrl;
private baseReqOpts?;
willSendRequest?: HttpsRequestInterceptor;
constructor(baseUrl: string, baseReqOpts?: RequestOptions);
get: (pathOrUrl: string | URL, reqOpts?: RequestOptions | undefined, telemetry?: EventEmitter | undefined) => Promise;
post: (pathOrUrl: string | URL, data?: string | Readable | Buffer | (EventEmitter & {
pipe(destination: T, options?: {
end?: boolean | undefined;
} | undefined): T;
}) | undefined, reqOpts?: RequestOptions | undefined, telemetry?: EventEmitter | undefined) => Promise;
patch: (pathOrUrl: string | URL, data?: string | Readable | Buffer | (EventEmitter & {
pipe(destination: T, options?: {
end?: boolean | undefined;
} | undefined): T;
}) | undefined, reqOpts?: RequestOptions | undefined, telemetry?: EventEmitter | undefined) => Promise;
put: (pathOrUrl: string | URL, data?: string | Readable | Buffer | (EventEmitter & {
pipe(destination: T, options?: {
end?: boolean | undefined;
} | undefined): T;
}) | undefined, reqOpts?: RequestOptions | undefined, telemetry?: EventEmitter | undefined) => Promise;
delete: (pathOrUrl: string | URL, data?: string | Readable | Buffer | (EventEmitter & {
pipe(destination: T, options?: {
end?: boolean | undefined;
} | undefined): T;
}) | undefined, reqOpts?: RequestOptions | undefined, telemetry?: EventEmitter | undefined) => Promise;
request: (pathOrUrl: string | URL, method: Method, reqOpts?: RequestOptions | undefined, data?: string | Readable | Buffer | (EventEmitter & {
pipe(destination: T, options?: {
end?: boolean | undefined;
} | undefined): T;
}) | undefined, telemetry?: EventEmitter | undefined) => Promise;
private buildUrl;
private combineOpts;
}
export default HttpsClient;
//# sourceMappingURL=httpsClient.d.ts.map