import { R as RequestAdapter, a as RequestConfig } from '../types-CbTsi9CZ.js';

/**
 * Web 平台请求适配器
 * 基于标准 fetch API
 *
 * 适用平台：
 * - Web (Next.js)
 * - Desktop (Electron)
 * - Mobile (React Native)
 */
declare class WebRequestAdapter implements RequestAdapter {
    request<T = any>(config: RequestConfig): Promise<T>;
}

/**
 * Taro Request 接口定义
 * 兼容 @tarojs/taro request API
 */
interface TaroRequestStatic {
    request<T = any>(options: {
        url: string;
        method?: string;
        header?: Record<string, string>;
        data?: any;
    }): Promise<{
        statusCode: number;
        data: T;
    }>;
}
/**
 * Miniapp 平台请求适配器
 * 基于 Taro.request API
 *
 * 使用方式：
 * ```typescript
 * import Taro from '@tarojs/taro'
 * const adapter = new MiniappRequestAdapter(Taro)
 * ```
 *
 * 适用平台：
 * - WeChat Miniapp
 * - Other Taro-based miniapps
 */
declare class MiniappRequestAdapter implements RequestAdapter {
    private taro;
    constructor(taro: TaroRequestStatic);
    request<T = any>(config: RequestConfig): Promise<T>;
}

export { MiniappRequestAdapter, RequestAdapter, RequestConfig, WebRequestAdapter };
