///
import type { IncomingHttpHeaders, RequestOptions } from "http";
import type { RequestOptions as SecureRequestOptions } from "https";
import { EventEmitter } from "events";
import type { Readable } from "stream";
export declare type Consumable = Readable | Buffer | string | (EventEmitter & {
pipe(destination: T, options?: {
end?: boolean;
}): T;
});
export declare enum Method {
Get = "GET",
Post = "POST",
Patch = "PATCH",
Put = "PUT",
Delete = "DELETE"
}
export declare enum StatusClass {
Unknown = 0,
Informational = 1,
Successful = 2,
Redirection = 3,
BadRequest = 4,
ServerError = 5
}
export declare type ConsumedResponse = {
headers: IncomingHttpHeaders;
statusClass: StatusClass;
statusCode?: number;
statusMessage?: string;
data: T;
};
declare type RequestInterceptor = (url: URL, opts: T) => void;
export declare type HttpRequestInterceptor = RequestInterceptor;
export declare type HttpsRequestInterceptor = RequestInterceptor;
export {};
//# sourceMappingURL=types.d.ts.map