import type { MapProps as ComponentMapProps, MapMarkerProps } from '@byted-doubao-apps/components'; import type { MapProps } from '@tarojs/components'; export interface NativeMarkerBridgeProps { markerId: string | number; position: MapProps.point; anchor: [number, number]; alpha: MapProps.marker['alpha']; rotation: MapProps.marker['rotate']; zIndexStyle?: { zIndex: number; }; } export interface MarkerElementPropsOptions { nativeMarker: NativeMarkerBridgeProps; onClick?: () => void; } export interface MarkerTextLayer { key: 'callout' | 'label' | 'title'; content: string; style: Record; } export interface MarkerTextContent { callout?: MarkerTextLayer; label?: MarkerTextLayer; title?: MarkerTextLayer; } export declare function normalizeSetting(setting: MapProps['setting']): Record; export declare function getNumberSetting(setting: Record, key: string): number | undefined; export declare function getBooleanSetting(setting: Record, key: string): boolean | undefined; export declare function resolvePolylines(polylines: MapProps['polyline']): NonNullable; export declare function canResolveTaroPolylineArrow(item: MapProps.polyline): item is MapProps.polyline & { arrowLine: true; arrowIconPath: string; }; export declare function resolveCircles(circles: MapProps['circles']): { id: string; center: { latitude: number; longitude: number | undefined; }; radius: number; strokeWidth: number | undefined; strokeColor: string | undefined; fillColor: string | undefined; }[]; export declare function resolveNativePolygons(polygons: MapProps.polygon[]): { id: string; points: MapProps.point[]; dottedLine: boolean | undefined; strokeWidth: number | undefined; strokeColor: string | undefined; fillColor: string | undefined; zIndex: number | undefined; }[]; export declare function resolvePadding(padding: NonNullable): number[] | undefined; export declare function resolveCustomMapStyle(customMapStyle: MapProps['customMapStyle']): "normal-light" | "simple-light" | undefined; export declare function mapRegionChangeDetail(detail: Parameters>[0]): MapProps.onRegionEventDetail<'begin'> | MapProps.onRegionEventDetail<'end'>; export declare function mapPolylineTapDetail(detail: Parameters>[0]): MapProps.onPolylineTapEventDetail; export declare function mapMarkerToNativeProps(marker: MapProps.marker, index: number): NativeMarkerBridgeProps; export declare function getMarkerId(marker: MapProps.marker, index: number): number; export declare function createMarkerElementProps(options: MarkerElementPropsOptions): MapMarkerProps; export declare function hasByClickCallout(marker: MapProps.marker): boolean; export declare function hasTapTitle(marker: MapProps.marker): boolean; export declare function resolveMarkerIconStyle(marker: MapProps.marker): Record | undefined; export declare function shouldAutoSizeMarkerIcon(marker: MapProps.marker): boolean; export declare function resolveMarkerTextContent(marker: MapProps.marker, markerId: string | number, activeCalloutMarkerId?: string | number): MarkerTextContent; export declare function composeMarkers(propMarkers: MapProps.marker[], addedMarkers: MapProps.marker[], removedMarkerIds: number[]): MapProps.marker[]; export declare function mergeMarkersById(base: MapProps.marker[], incoming: MapProps.marker[]): MapProps.marker[]; export declare function removeMarkersByIds(markers: MapProps.marker[], markerIds: number[]): MapProps.marker[]; export declare function getNumericMarkerId(marker: MapProps.marker): number | undefined; export declare function mapRegionCausedByEnd(causedBy: 'drag' | 'scale', triggeredBy: 'user' | 'api'): "scale" | "drag" | "update"; export declare function dispatchMarkerTapEvent(handlers: { onMarkerTap?: (event: T) => void; onLabelTap?: (event: T) => void; onCalloutTap?: (event: T) => void; onCallOutTap?: (event: T) => void; }, event: T): void; export declare function coerceEventId(id: string): string | number; export declare function getOptionalId(value: object, fallback: number): string | number; //# sourceMappingURL=bridge.d.ts.map