import type { MapApi, MapState } from "../core/types"; /** * Builds a full `MapApi` stub for use in unit tests and hook-stability specs. * * Uses the real `createPanelStore`, `createMapAnnotationStore`, and * `createMapLoadingIndicatorStore` so store state can be asserted on * (e.g. a test can register an annotation and then assert `getSnapshot()`). * * Action stubs (setCenter, fitBounds, panTo, etc.) are plain no-ops that * return a resolved `Promise`. Pass `actionOverrides` to replace any * action with a spy or custom implementation. * * @example * ```ts * // Basic usage — real stores, no-op actions: * const api = mockMapApi(); * * // Override specific actions for assertion: * const fitBounds = vi.fn().mockResolvedValue(undefined); * const api = mockMapApi({ actions: { fitBounds } }); * * // Override state (e.g. a ready map at zoom 15): * const api = mockMapApi({ state: { zoom: 15 } }); * ``` */ export declare const mockMapApi: (overrides?: { state?: Partial; actions?: Partial; }) => MapApi;