///
export type Part = {
headers: Record;
body: string;
};
/**
* StreamCallback is a callback function that is called for each chunk of data
* received from the server. The callback is called with a null chunk when the
* stream is complete.
*/
type StreamCallback = (chunk: Part) => Promise;
export declare function StreamMultipartMixedChunks(httpResponse: any, callback: StreamCallback): Promise;
export type HTTPHeaders = Record;
export declare class HTTPRequest {
method: string;
url: string;
headers: HTTPHeaders;
body: string;
abortController: AbortController | null;
get path(): string;
fetch(): Promise;
}
export {};