import { SearchResult } from '../types';

/**
 * 高德地图搜索API类
 */
export declare class AmapSearchApi {
    private apiKey;
    private securityKey;
    private baseUrl;
    constructor(apiKey?: string, securityKey?: string);
    /**
     * 搜索地址或POI
     * @param query 搜索关键词
     * @param options 搜索选项
     */
    search(query: string, options?: {
        maxResults?: number;
        region?: string;
        type?: "all" | "poi" | "bus" | "busline";
        city?: string;
    }): Promise<SearchResult[]>;
    /**
     * 获取模拟搜索结果
     * @param query 搜索关键词
     * @param maxResults 最大结果数
     */
    private getMockSearchResults;
    /**
     * 获取搜索建议
     * @param query 搜索关键词
     * @param options 搜索选项
     */
    getSuggestions(query: string, options?: {
        maxResults?: number;
        city?: string;
    }): Promise<string[]>;
    /**
     * 转换高德地图搜索结果为标准格式
     */
    private transformResults;
    /**
     * 根据类型码获取POI类型
     */
    private getPOIType;
    /**
     * 计算搜索结果的置信度
     */
    private calculateConfidence;
    /**
     * 逆地理编码 - 根据坐标获取地址
     * @param coordinates 经纬度坐标 [lon, lat]
     */
    reverseGeocode(coordinates: [number, number]): Promise<string>;
}
export declare const amapSearchApi: AmapSearchApi;
export declare function createAmapSearchApi(apiKey: string, securityKey?: string): AmapSearchApi;
//# sourceMappingURL=amapSearchApi.d.ts.map