import { SWRConfiguration } from 'swr';
/**
 * Fetches data from a given URL and returns the JSON response.
 * If the response is not ok, it throws an error with the response text or a default message.
 *
 * @param resource - The URL to fetch the data from.
 * @param init - Optional configuration options for the request.
 * @returns A promise that resolves with the JSON response.
 * @throws An error if the response status is not ok (i.e., not in the range 200-299).
 */
declare const getApiResponse: SWRConfiguration['fetcher'];
export default getApiResponse;
