/** What coord system the URL's host implies. Drives which conversion * `normalizeIncomingCoords` applies on the extracted lat/lng. */ export type MapUrlSource = 'dingtalk-link-amap' | 'dingtalk-link-tencent' | 'dingtalk-link-baidu' | 'dingtalk-link-unknown'; /** Best-effort lat/lng extraction from common map URLs. * * Returns null if the URL doesn't look like a map share. On hit, also * returns the `source` so the caller can route through * `normalizeIncomingCoords()` for the right coord-system conversion: * - Amap / Gaode → GCJ-02 * - Tencent (map.qq) → GCJ-02 * - Baidu Maps → BD-09 * - Anything else → pass-through (we don't guess for unknown hosts) * * Parses these URL shapes: * - Amap: `uri.amap.com/marker?position=lng,lat` * - Tencent: `apis.map.qq.com/uri/v1/marker?marker=coord:lat,lng` * - Generic: `?location=lat,lng`, `?latlng=lat,lng`, `?lat=…&lng=…` */ export declare function tryExtractLatLng(url: string): { lat: number; lng: number; source: MapUrlSource; } | null; //# sourceMappingURL=link-coords.d.ts.map