import type { UmbApiResponse, XhrRequestOptions } from '../types.js';
import type { UmbControllerHost } from '../../../../libs/controller-api/index.js';
/**
 * Make an XHR request.
 * This function is a wrapper around XMLHttpRequest to provide a consistent API for making requests.
 * It supports cancelable promises, progress events, and custom headers.
 * @param {UmbControllerHost} host The host to use for the request.
 * @param {XhrRequestOptions} options The options for the request.
 * @returns {Promise<UmbApiResponse<T>>} A promise that resolves with the response data or rejects with an error.
 * @template T The type of the response data.
 */
export declare function tryXhrRequest<T>(host: UmbControllerHost, options: XhrRequestOptions): Promise<UmbApiResponse<T>>;
