/** * Sets up mocks for Google Maps API and @vis.gl/react-google-maps components * in testing environments. * * Replaces the `@vis.gl/react-google-maps` hooks/components (`APIProvider`, * `useMap`, `Map`, `Marker`, `AdvancedMarker`, `InfoWindow`, * `useApiIsLoaded`, `useApiLoadingStatus`) with deterministic fakes and * registers a `beforeEach` hook that re-populates `global.window.google.maps` * with mocked `Geocoder` / `geometry` / `AutocompleteService` implementations * via `@googlemaps/jest-mocks`. * * Opt-in: the mock is registered via `vi.doMock` so it is * NOT hoisted and only takes effect once `setupGoogleMaps()` is called from * a test setup file. Tests that need the real `@vis.gl/react-google-maps` * (or their own mock) are unaffected unless they explicitly call this. * * The factory body uses `require()` rather than `import` for * `@vis.gl/react-google-maps` and `@googlemaps/jest-mocks` so neither * package is evaluated until the factory actually runs (the latter still * uses Jest globals internally, so a static import would crash any * consumer that doesn't actually use the Google Maps mock). * * @example * import { setupGoogleMaps } from '@trackunit/react-vite-test-setup'; * setupGoogleMaps(); */ export declare const setupGoogleMaps: () => void;