// eslint-disable-next-line @react-native/no-deep-imports import codegenNativeCommands from 'react-native/Libraries/Utilities/codegenNativeCommands'; // eslint-disable-next-line @react-native/no-deep-imports import {type Double} from 'react-native/Libraries/Types/CodegenTypes'; import {type YamapComponentType} from '../YamapNativeComponent'; import {type ClusteredYamapComponentType} from '../ClusteredYamapNativeComponent'; import {Animation, type ScreenPoint} from '../../interfaces'; import type {Point} from "../../"; export interface YamapNativeCommands { setCenter: ( viewRef: React.ElementRef, args: Array>, ) => void; fitAllMarkers: ( viewRef: React.ElementRef, args: Array>) => void; fitMarkers: ( viewRef: React.ElementRef, args: Array>) => void; setZoom: ( viewRef: React.ElementRef, args: Array> ) => void; getCameraPosition: ( viewRef: React.ElementRef, args: Array>) => void; getVisibleRegion: ( viewRef: React.ElementRef, args: Array>) => void; setTrafficVisible: ( viewRef: React.ElementRef, args: Array>) => void; getScreenPoints: ( viewRef: React.ElementRef, args: Array> ) => void; getWorldPoints: ( viewRef: React.ElementRef, args: Array> ) => void; appendClusterMarkers: ( viewRef: React.ElementRef, args: Array> ) => void; clearClusterMarkers: ( viewRef: React.ElementRef, args: Array>> ) => void; } export const Commands = codegenNativeCommands({ supportedCommands: [ 'setCenter', 'fitAllMarkers', 'fitMarkers', 'setZoom', 'getCameraPosition', 'getVisibleRegion', 'setTrafficVisible', 'getScreenPoints', 'getWorldPoints', 'appendClusterMarkers', 'clearClusterMarkers', ], });