/** The small JSAPI 4.0 surface used by the daily-location map. */ export interface BaiduPoint { lng: number; lat: number; } export interface BaiduMapStyle { styleJson: Array<{ featureType: string; elementType: string; stylers: { color: string; }; }>; } export interface BaiduMap { setMapStyle(style: BaiduMapStyle): void; centerAndZoom(point: BaiduPoint, zoom: number): void; setViewport(points: BaiduPoint[], options: { margins: number[]; enableAnimation: boolean; }): void; pointToPixel(point: BaiduPoint): { x: number; y: number; }; getBounds(): { getSouthWest(): BaiduPoint; getNorthEast(): BaiduPoint; }; getZoom(): number; setZoom(zoom: number): void; panBy(x: number, y: number): void; enableScrollWheelZoom(): void; checkResize(): void; addEventListener(event: string, callback: () => void): void; removeEventListener(event: string, callback: () => void): void; destroy(): void; } export interface BaiduMaps { Map: new (element: HTMLElement, options: Record) => BaiduMap; Point: new (longitude: number, latitude: number) => BaiduPoint; Convertor: new () => { translate(points: BaiduPoint[], from: number, to: number, callback: (result: { status: number; points?: BaiduPoint[]; }) => void): void; }; } /** Load once per page, only when a map is opened. Browser AKs must allow this origin. */ export declare function loadBaiduMaps(key: string): Promise; /** Record/device observations are WGS84, matching the mobile location contract. * Use Baidu's converter, in batches of at most ten; never plot unconverted GPS points. * The caller owns the cache and its account/lifetime boundary. At most two batches run at once. */ export declare function convertBaiduPoints(sdk: BaiduMaps, points: readonly BaiduPoint[], cache: Map, signal: AbortSignal): Promise; //# sourceMappingURL=baidu-map.d.ts.map