import type { Dictionary } from '@empathyco/x-utils'; /** * Formats a response object to JSON. * * @remarks If the `response.ok` is falsy, a `RequestError` object is thrown. * * @param response - The response to convert to JSON format. * @returns - The resultant promise of formatting the response to JSON. * * @public */ export declare function toJson(response: Response): Promise; /** * Builds a URL object based on the passed endpoint and the request parameters. * * @param endpoint - The endpoint. * @param params - The request parameters. * * @returns The `href` property of the newly built `URL` object. * * @public */ export declare function buildUrl(endpoint: string, params?: Dictionary): URL['href'];