import { RequestConfig } from "./interfaces/Config"; /** * Makes an API request with standardized headers and token refresh. * * @export * @template T The expected response data type * @param {RequestConfig} config - The request configuration including method, URL, data, params, and optional headers * @return {Promise} A promise that resolves to the response data of type T * @throws {Error} May throw an error if the API request fails or token refresh fails * * @example * interface UserData { * id: string; * name: string; * email: string; * } * * const userData = await makeApiRequest({ * method: 'GET', * url: 'https://api.example.com/users/123', * headers: { 'X-Custom-Header': 'value' } * }); * console.log(userData.name); // Typed access to the response data */ export declare function makeApiRequest(config: RequestConfig): Promise;