import YaMap from '../../bare'; import type { CameraPosition, DrivingInfo, Point as YaPoint, RouteInfo as YaRouteInfo, } from '../../bare'; import type { RefObject } from 'react'; export type CamPos = CameraPosition; export type Point = YaPoint; export type RouteInfo = YaRouteInfo; export type SetCameraPositionParams = { lat: number; lon: number; zoom: number; animationDuration?: number; tilt?: number; azimuth?: number; }; export enum MapEvent { CAMERA_POSITION_CHANGED, CAMERA_POSITION_CHANGE_START, MAP_LONG_PRESS, } export type Unsub = () => void; export type MapRef = { raw: RefObject; getCameraPosition: () => Promise; setCameraPosition: (params: SetCameraPositionParams) => void; addListener: (event: MapEvent, cb: (data: K) => void) => Unsub; };