import { Bounds, Point, Size } from '../types'; export interface MapSnapshot { center: Point | null; zoom: number | null; bounds: Bounds | null; size: Size | null; heading: number | null; tilt: number | null; } /** * 订阅 Map 状态变化(DESIGN.md §6.1.1)。 * * 关键:snapshot 必须用「值」比较而不是「引用」比较。 * 每次 readSnapshot 都返回新对象,但只要 lng/lat/zoom 等值不变,就返回缓存的同一引用。 * * 适配新 DESIGN.md §12:driver getter 不再返回 undefined。 * 此处用 try/catch 包裹,driver 在 throw 模式下抛错时该字段降级为 null。 * NaN 也视为 null(getter 不支持时 warn/ignore 模式返回 NaN)。 */ export declare function useMapStatus(): MapSnapshot | null;