import { ServiceEndpointConfig } from '../types/config'; export declare class ServiceAgent { private axiosInstance; private serviceConfigs; private cache; constructor(); /** * 注册服务配置 */ registerService(serviceId: string, config: ServiceEndpointConfig): void; /** * 批量注册服务配置 */ registerServices(services: Record): void; /** * 获取数据 */ fetchData(serviceId: string, dynamicParams?: Record): Promise; /** * 构建请求参数 */ private buildRequestParams; /** * 发起HTTP请求 */ private makeRequest; /** * 处理响应数据,转换为GeoJSON格式 */ private processResponse; /** * 根据路径提取数据 */ private extractDataByPath; /** * 提取几何对象 */ private extractGeometry; /** * 提取属性 */ private extractProperties; /** * 尝试提取坐标 */ private tryExtractCoordinates; /** * 解析几何对象 */ private parseGeometry; /** * 生成缓存键 */ private generateCacheKey; /** * 从缓存获取数据 */ private getFromCache; /** * 设置缓存 */ private setCache; /** * 清除缓存 */ clearCache(serviceId?: string): void; /** * 设置请求拦截器 */ private setupRequestInterceptors; /** * 设置响应拦截器 */ private setupResponseInterceptors; /** * 销毁实例 */ destroy(): void; }