/** * `request` is a helper function that sends HTTP requests and returns the response * body, headers, and status code. * Use the error map to provide custom error messages or get hold of the response in case of errors. * @param method - The HTTP method to use for the request (e.g., "GET", "POST", "PUT", "DELETE", etc.). * @param fullUrlOrPath - The full or partial URL for the request. * @param [options] - The `options` parameter is an object that contains additional configuration * options for the request. * @returns an object with the following properties: * - method: the request method * - url: the request url * - code: the status code of the response * - headers: the headers of the response * - body: the body of the response * - message: the status text of the response * - duration: the response time */ export function request(method: any, fullUrlOrPath: any, options?: {}): Promise<{ url: string; method: any; statusCode: any; statusMessage: string; headers: any; body: any; duration: number; }>; /** * Encodes a plain object into a `FormData` instance. * * - Primitives are converted to strings * - Objects and arrays are JSON stringified * - `Blob` and `File` values are appended as-is * - Null and undefined values are skipped * * @param {Object} data - The object to encode * @returns {FormData} */ export function encodeFormBody(data: any): FormData; export function makeBasicAuthHeader(username: any, password: any): { Authorization: string; }; export function logResponse(response: any): any; export function generateAgentKey(baseUrl: any, agentOpts?: {}): any; export function enableMockClient(baseUrl: any, options?: {}): import("undici/types/mock-interceptor.js").Interceptable; export const ERROR_ABSOLUTE_URL: "Absolute URLs not supported"; export function assertRelativeUrl(path: any): void; export const ERROR_URL_MISMATCH: "Target origin does not match baseUrl origin"; export function parseUrl(pathOrUrl: string, baseUrl: any): { url: string; baseUrl: string; path: string; query: any; }; export function get(url: any, options: any): Promise<{ url: string; method: any; statusCode: any; statusMessage: string; headers: any; body: any; duration: number; }>; export function post(url: any, body: any, options: any): Promise<{ url: string; method: any; statusCode: any; statusMessage: string; headers: any; body: any; duration: number; }>; export function put(url: any, body: any, options: any): Promise<{ url: string; method: any; statusCode: any; statusMessage: string; headers: any; body: any; duration: number; }>; export function del(url: any, body: any, options: any): Promise<{ url: string; method: any; statusCode: any; statusMessage: string; headers: any; body: any; duration: number; }>; import { FormData } from "undici/types/formdata.js";