import type { CreateMethod, FormattedResponse } from '../types'; /** * @namespace httpClient * @module createMethod * @description Wrapper that return REST method. * @param {Object} options * @param {string} options.query * @param {number} options.timeout * @param {string} options.url * @param {Function[]} options.middleware * @param {Object} options.params * @param {string} options.method * @param {string} options.format * @throws {Response & { formattedResponse: string | object }} * @returns {Response} resolved or rejected promise */ export declare function createMethod({ query, timeout, url, baseUrl, middleware, params, method, format, }: CreateMethod): Promise;