import type { IncomingMessage } from 'http'; import type { Readable } from 'stream'; import { HttpFetchBufferOptions, HttpFetchJsonOptions, HttpFetchOptions, HttpFetchReadableOptions, HttpFetchResponse, HttpFetchResponseType, HttpFetchTextOptions } from '.'; export type { HttpFetchBufferOptions, HttpFetchJsonOptions, HttpFetchOptions, HttpFetchReadableOptions, HttpFetchResponse, HttpFetchResponseType, HttpFetchTextOptions, checkStatus, setDefaultHttpFetchAccept } from '.'; export interface FetchParser { parse(message: IncomingMessage): Promise; } export declare function getHttpFetchParser(responseType: HttpFetchResponseType | undefined): FetchParser; export declare function httpFetchParseIncomingMessage(readable: IncomingMessage, responseType: HttpFetchResponseType | undefined): Promise; export declare function httpFetch>(options: T): Promise ? Buffer : T extends HttpFetchTextOptions ? string : T extends HttpFetchReadableOptions ? IncomingMessage : T extends HttpFetchJsonOptions ? any : Buffer>>;