///
import { Duplex, Writable } from "stream";
import * as undici from "undici";
import { ReqOptions, HttpMethod } from "./request";
export type StreamOptions = Omit;
export declare function pipeline(method: HttpMethod, uri: string | URL, options?: StreamOptions): Duplex;
export type WritableStreamCallback = (writable: Writable) => Promise;
export declare function stream(method: HttpMethod, uri: string | URL, options?: StreamOptions): WritableStreamCallback;