import { Nullable } from '../../types'; import { ComputedRef, MaybeRef } from 'vue'; import { Map, LngLatBoundsLike, FitBoundsOptions, CameraForBoundsOptions, LngLatBounds } from 'maplibre-gl'; export declare enum BoundsStatus { NotSet = "not-set", Setting = "setting", Set = "set", Error = "error" } interface FitBoundsProps { map: MaybeRef>; options?: FitBoundsOptions; debug?: boolean; } interface FitBoundsActions { setFitBounds: (boundsVal: LngLatBoundsLike, options?: FitBoundsOptions) => void; clearBounds: () => void; getCurrentBounds: () => LngLatBounds | null; bounds: ComputedRef; boundsStatus: ComputedRef; isBoundsSet: ComputedRef; } interface CameraForBoundsProps { map: MaybeRef>; options?: CameraForBoundsOptions & { bounds?: LngLatBoundsLike; }; debug?: boolean; } interface CameraForBoundsActions { cameraForBounds: (boundsVal: LngLatBoundsLike, options?: CameraForBoundsOptions) => void; clearCamera: () => void; getCurrentBounds: () => LngLatBounds | null; bbox: ComputedRef; cameraStatus: ComputedRef; isCameraSet: ComputedRef; } /** * Composable for managing map bounds fitting */ export declare function useFitBounds(props: FitBoundsProps): FitBoundsActions; /** * Composable for managing camera positioning for bounds */ export declare function useCameraForBounds(props: CameraForBoundsProps): CameraForBoundsActions; export {};