///
import { PointSource, type CoordinateType, type LngLatLiterial, type Place, type Point, type TrackPoint, type TrafficStatus, type Zone } from "../types/interface";
import type { AlipayMyGetLocationSuccessResponse } from "../types/my";
import type { WxGetLocationSuccessResponse } from "../types/wx";
import { BRWOSER_PLATFORM } from "./platform";
export declare const isAccuryEqual: (x: number, y?: number) => boolean;
export declare const vec2lnglat: ([lng, lat]: [number, number]) => LngLatLiterial;
export declare const lnglat2point: ({ lng, lat }: {
lng: number;
lat: number;
}) => Point;
export declare const stringifyPoint: (p: Point) => `${number},${number}`;
export declare const googlePointsStringify: (points: Point[]) => string;
export declare const gaodePointsStringify: (points: Point[]) => string;
export interface AsteriskItem {
type: "normal" | "emphasize";
value: string;
}
export declare const decodeAsterisk: (encodedValue: string) => AsteriskItem[];
export declare const property2emitEventName: (propertyName: string) => string;
export declare const property2mapEventName: (propertyName: string) => string;
export declare const place2point: (place: Place) => Point;
export declare const combineHandler:
(fn1: ((...args: P) => any) | undefined, fn2: (...args: P) => R) => (...args: P) => R;
export declare const pipeAsync:
(fn?: ((...args: P) => any) | undefined) => (...args: P) => void;
export declare const pipeDefer:
(fn: (...args: P) => R) => (...args: P) => Promise;
export declare const pipeOnlyLastEffect: (fn: (...arg: P) => Promise) => (...args: P) => Promise;
export declare const isPlaceEqual: (p1: Place, p2?: Place) => boolean;
export declare const isPointExactEqual: (p1: Point, p2?: Point) => boolean;
export declare const isPointEqual: (p1: Point, p2?: Point) => boolean;
export declare const isGeoPositionEqual: (p1: GeolocationPosition, p2?: GeolocationPosition) => boolean;
export declare const isZoneEqual: (z1: Zone, z2?: Zone) => boolean;
interface AmapPlaceName2DisplayNameOptions extends AMap.AddressComponent {
isChinese: boolean;
}
export declare const amapPlaceName2DisplayName: (name: string, options: AmapPlaceName2DisplayNameOptions) => string;
export declare function gmapPlaceName2DisplayName(name: string, addressComponents: google.maps.GeocoderAddressComponent[]): string;
export declare const distanceVw2animationDuration: (distance: number) => number;
export declare const deltaZoom2animationDuration: (deltaZoom: number) => number;
export declare const wxGetLocationSuccessResponse2GeolocationPosition: (res: WxGetLocationSuccessResponse) => GeolocationPosition;
export declare const trackPoints2amapGraspRoadPoints: (trackPoints: TrackPoint[]) => AMap.GraspRoadOriginPath;
export declare const alipayMyGetLocationSuccessResponse2GeolocationPosition: (res: AlipayMyGetLocationSuccessResponse) => GeolocationPosition;
export declare const alipayMyGetLocationError2GeolocationPositionErrorCode: (code: number) => 1 | 2 | 3;
export declare const geoPositionError2businessTimeout: (error: GeolocationPositionError, platform: BRWOSER_PLATFORM) => boolean;
export declare const businessCandidatesToAdsorptionPlace: (places: Place[]) => {
pointSource: PointSource;
lng: number;
lat: number;
name: string;
displayName: string;
};
type MaybeFunctionToFunction = T extends (...args: any) => any ? T : () => T;
export declare const maybeFunctionToFunction: (value: T) => MaybeFunctionToFunction;
export declare const signal2promise: (signal?: AbortSignal) => Promise;
export declare const googleEncodedPolyline2googleLatLng: (value: string) => google.maps.LatLng[];
export declare const gaodePolyline2amapLngLat: (value: string) => AMap.LngLat[];
export declare const amapTraffic2trafficStatus: (value?: AMap.TMC["status"]) => TrafficStatus;
export declare const error2beautifyString: (error: unknown) => string;
export declare const mergeDefaultProps: (defaultProps: T, props?: Partial | undefined) => T;
export declare const splitColorAlpha: (colorInput: string) => {
color: string;
alpha: number;
};
/**
* WGS84转HK1980坐标代码
* 参考文档:https://www.geodetic.gov.hk/common/data/pdf/explanatorynotes_c.pdf
*/
export declare const wgs84ToHK80: (lat: number, lon: number) => {
x: number;
y: number;
};
export declare const wgs84ToHK80HighPrecision: (lat: number, lon: number) => {
x: number;
y: number;
};
export declare const toLocalGcj02Force: (point: Point, type: CoordinateType) => Point;
export declare const toLocalWgs84Force: (point: Point, type: CoordinateType) => Point;
export declare const toAnotherForce: (point: Point, type: CoordinateType) => Point;
export {};