import { ClashAPI, IBaseApiResponse } from '../types'; import { createBaseApiRequest } from './createBaseApiRequest'; import { getClashApiUrl } from '../../helpers'; export async function getClashConfig(): Promise< IBaseApiResponse > { return createBaseApiRequest(() => fetch(`${getClashApiUrl()}/configs`, { method: 'GET', headers: { 'Content-Type': 'application/json' }, }), ); }