import React from 'react'; import { ViewProps, ImageSourcePropType, NativeSyntheticEvent } from 'react-native'; import { Point, ScreenPoint, DrivingInfo, MasstransitInfo, RoutesFoundEvent, Vehicles, CameraPosition, VisibleRegion, InitialRegion, MapType, Animation, MapLoaded, YandexLogo } from '../interfaces'; export interface YaMapProps extends ViewProps { userLocationIcon?: ImageSourcePropType; userLocationIconScale?: number; showUserPosition?: boolean; nightMode?: boolean; mapStyle?: string; mapType?: MapType; onCameraPositionChange?: (event: NativeSyntheticEvent) => void; onCameraPositionChangeEnd?: (event: NativeSyntheticEvent) => void; onMapPress?: (event: NativeSyntheticEvent) => void; onMapLongPress?: (event: NativeSyntheticEvent) => void; onMapLoaded?: (event: NativeSyntheticEvent) => void; userLocationAccuracyFillColor?: string; userLocationAccuracyStrokeColor?: string; userLocationAccuracyStrokeWidth?: number; scrollGesturesEnabled?: boolean; zoomGesturesEnabled?: boolean; tiltGesturesEnabled?: boolean; rotateGesturesEnabled?: boolean; fastTapEnabled?: boolean; initialRegion?: InitialRegion; maxFps?: number; followUser?: boolean; logoPosition?: YandexLogo; } export declare class YaMap extends React.Component { static defaultProps: { showUserPosition: boolean; clusterColor: string; maxFps: number; }; map: React.RefObject; static ALL_MASSTRANSIT_VEHICLES: Vehicles[]; static init(apiKey: string): Promise; static setLocale(locale: string): Promise; static getLocale(): Promise; static resetLocale(): Promise; findRoutes(points: Point[], vehicles: Vehicles[], callback: (event: RoutesFoundEvent) => void): void; findMasstransitRoutes(points: Point[], callback: (event: RoutesFoundEvent) => void): void; findPedestrianRoutes(points: Point[], callback: (event: RoutesFoundEvent) => void): void; findDrivingRoutes(points: Point[], callback: (event: RoutesFoundEvent) => void): void; fitAllMarkers(): void; setTrafficVisible(isVisible: boolean): void; fitMarkers(points: Point[]): void; setCenter(center: { lon: number; lat: number; zoom?: number; }, zoom?: number, azimuth?: number, tilt?: number, duration?: number, animation?: Animation): void; setZoom(zoom: number, duration?: number, animation?: Animation): void; getCameraPosition(callback: (position: CameraPosition) => void): void; getVisibleRegion(callback: (VisibleRegion: VisibleRegion) => void): void; getScreenPoints(points: Point[], callback: (screenPoint: ScreenPoint) => void): void; getWorldPoints(points: ScreenPoint[], callback: (point: Point) => void): void; private _findRoutes; private getCommand; private processRoute; private processCameraPosition; private processVisibleRegion; private processWorldToScreenPointsReceived; private processScreenToWorldPointsReceived; private resolveImageUri; private getProps; render(): JSX.Element; }