import { BaseClient } from './base.js'; import { StandardResponse } from '../interfaces.js'; import { ServerStatus } from './interfaces.js'; export class GeneralAPI extends BaseClient { async getStats(): Promise> { return this.request('/stats', { method: 'GET', }); } async health(): Promise> { const response = await fetch(this.baseURL); if (response.ok) { return response.json(); } else { throw new Error('API is down'); } } }