import type { Entity } from "@trackunit/react-map-adapter-shared"; import type { MapApi } from "../../core/types"; import type { LayerHandle } from "../types"; /** * Creates a dblclick handler that fits the viewport to the double-clicked * entity's bounds. Behaviour per entity type: * * - **shape**: fit to the individual feature's geometry * - **marker**: panTo + zoom to a close level * - **cluster**: fit to bounds of contained markers when any resolve from loaded handles; if none (e.g. server cluster), fit to `bbox` when present on the entity * - **route**: fit to the route layer's bounds */ export declare const useDblClickFit: (api: MapApi | undefined, handles: ReadonlyArray) => ((entity: Entity) => void) | undefined;