import type { HTTPResponse, RequestConfig } from '../types' export abstract class HttpEngine { /** * 发送 HTTP 请求 * @param url 请求 URL * @param config 请求配置 */ abstract request(url: string, config: RequestConfig): Promise> /** * 中止 HTTP 请求 */ abstract abort(): void }