import { Nullable } from '../../types'; import { ComputedRef, MaybeRef } from 'vue'; import { Map, AnimationOptions, CameraOptions } from 'maplibre-gl'; export declare enum RotationStatus { NotStarted = "not-started", Rotating = "rotating", Completed = "completed", Error = "error" } interface RotateToProps { map: MaybeRef>; bearing?: number; options?: AnimationOptions; debug?: boolean; autoRotate?: boolean; } interface RotateToActions { rotateTo: (bearing: number, options?: AnimationOptions) => Promise; stopRotating: () => void; getCurrentBearing: () => number | null; getCurrentCamera: () => CameraOptions | null; validateBearing: (bearing: number) => boolean; rotationStatus: ComputedRef; isRotating: ComputedRef; } interface ResetNorthProps { map: MaybeRef>; options?: AnimationOptions; debug?: boolean; autoReset?: boolean; } interface ResetNorthActions { resetNorth: (options?: AnimationOptions) => Promise; stopRotating: () => void; getCurrentBearing: () => number | null; getCurrentCamera: () => CameraOptions | null; rotationStatus: ComputedRef; isRotating: ComputedRef; } interface ResetNorthPitchProps { map: MaybeRef>; options?: AnimationOptions; debug?: boolean; autoReset?: boolean; } interface ResetNorthPitchActions { resetNorthPitch: (options?: AnimationOptions) => Promise; stopRotating: () => void; getCurrentBearing: () => number | null; getCurrentPitch: () => number | null; getCurrentCamera: () => CameraOptions | null; rotationStatus: ComputedRef; isRotating: ComputedRef; } interface SnapToNorthProps { map: MaybeRef>; options?: AnimationOptions; debug?: boolean; autoSnap?: boolean; } interface SnapToNorthActions { snapToNorth: (options?: AnimationOptions) => Promise; stopRotating: () => void; getCurrentBearing: () => number | null; getCurrentCamera: () => CameraOptions | null; rotationStatus: ComputedRef; isRotating: ComputedRef; } export declare function useRotateTo(props: RotateToProps): RotateToActions; export declare function useRotateTo(map: MaybeRef>, options?: AnimationOptions & { bearing: number; }): { rotateTo: (bearingVal: number, options?: AnimationOptions) => void; }; export declare function useResetNorth(props: ResetNorthProps): ResetNorthActions; export declare function useResetNorth(map: MaybeRef>, options?: AnimationOptions): { resetNorth: (options?: AnimationOptions) => void; }; export declare function useResetNorthPitch(props: ResetNorthPitchProps): ResetNorthPitchActions; export declare function useResetNorthPitch(map: MaybeRef>, options?: AnimationOptions): { resetNorthPitch: (options?: AnimationOptions) => void; }; export declare function useSnapToNorth(props: SnapToNorthProps): SnapToNorthActions; export declare function useSnapToNorth(map: MaybeRef>, options?: AnimationOptions): { snapToNorth: (options?: AnimationOptions) => void; }; export {};