import type { AnalyticsBrowser } from "@segment/analytics-next"; /** * The AnalyticsBrowser instance the mounted AnalyticsProvider loaded, for code that runs outside React * (state stores, imperative modules) and cannot reach the context. Null until a provider initializes * one, and null again once that provider unmounts or is reconfigured to a no-op (empty write key, bot * session). analytics-next buffers the calls made through the instance while the remote script is still * loading, so a caller needs no queue of its own. */ declare const getAnalytics: () => AnalyticsBrowser | null; /** Registers the instance a successful load produced. Not part of the package's public API. */ declare const registerAnalyticsInstance: (instance: AnalyticsBrowser) => void; /** * Clears the registry only when the given instance is the one registered, so a provider or a load that * was already superseded cannot erase a newer registration when its cleanup runs late. * Not part of the package's public API. */ declare const unregisterAnalyticsInstance: (instance: AnalyticsBrowser) => void; export { getAnalytics, registerAnalyticsInstance, unregisterAnalyticsInstance };