export interface DageMapMethods {
  mapRef: AMap.Map_2 | undefined;
}

export interface DageMapProps {
  latitude: number;
  longitude: number;
  address: string;
  disabled?: boolean;
  /**
   * 指定进行编码查询的城市，支持传入城市名、adcode 和 citycode
   */
  city?: string | number;
  onChange?(e: DageMapEvent): void;
  onMapComplete?(): void;
}

export interface DageMapEvent {
  lng?: number;
  lat?: number;
  address?: string;
}

export interface DageMapPoisType {
  adcode: string;
  address: string;
  location: string;
  name: string;
}

export interface AMapTipsResponse {
  tips: DageMapPoisType[];
}

export * from "./plugins/Geocoder/types";
