UNPKG

@vreippainen/hevy-mcp-server

Version:
13 lines (12 loc) 543 B
/** * API service for making HTTP requests with caching */ import { QueryParams } from '../types/index.js'; /** * Makes a GET request to the specified URL with optional query parameters * Results are cached for 5 minutes by default * @param {string} url - The base URL to fetch from * @param {QueryParams} [queryParams={}] - Optional query parameters as key-value pairs * @returns {Promise<T>} - The parsed JSON response */ export declare const get: <T = Record<string, unknown>>(url: string, queryParams?: QueryParams) => Promise<T>;