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