import { Dispatcher, FormData } from "undici"; export declare const TIMEOUT_SECS_DEFAULT: number; export interface RequestOptions { hostname?: string; path?: string; method: any; timeoutSecs: number; headers: any; body?: FormData | string; queryParams?: Record; } export interface BaseHttpResponse { messageObj: any; data: { [key: string]: any; }; } /** * Reads a response from the API and processes it. * @param dispatcher custom dispatcher to use for the request. * @param options options related to the request itself. * @param url override the URL of the request. * @returns the processed request. */ export declare function sendRequestAndReadResponse(dispatcher: Dispatcher, options: RequestOptions, url?: string): Promise;