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