import { Nullable } from '../../types'; import { ComputedRef, MaybeRef } from 'vue'; import { Map, FlyToOptions, LngLatLike, CameraOptions } from 'maplibre-gl'; /** * Fly animation status enum for better state management */ export declare enum FlyStatus { NotStarted = "not-started", Flying = "flying", Completed = "completed", Error = "error" } interface FlyToProps { map: MaybeRef>; options?: FlyToOptions; debug?: boolean; } interface FlyToActions { flyTo: (options?: FlyToOptions) => Promise; flyToCenter: (center: LngLatLike, options?: Omit) => Promise; flyToZoom: (zoom: number, options?: Omit) => Promise; flyToBearing: (bearing: number, options?: Omit) => Promise; flyToPitch: (pitch: number, options?: Omit) => Promise; stopFlying: () => void; getCurrentCamera: () => CameraOptions | null; flyStatus: ComputedRef; isFlying: ComputedRef; cleanup: () => void; } /** * Composable for managing smooth map camera fly animations */ export declare function useFlyTo(props: FlyToProps): FlyToActions; export {};