import { ReactNode } from 'react'; import { c as NCoordinates, G as GoogleLocationAdapterOptions, L as LeafletLocationAdapterOptions, a as NLocationGeocoderAdapter, b as NLocationLabels } from './types-B-o4sfPa.js'; interface NLocationRuntimeBaseConfig { defaultCenter: NCoordinates; defaultZoom: number; } interface NDisabledLocationRuntimeConfig extends NLocationRuntimeBaseConfig { provider: "disabled"; } interface NLeafletLocationRuntimeConfig extends NLocationRuntimeBaseConfig { provider: "leaflet"; leaflet: LeafletLocationAdapterOptions; } interface NGoogleLocationRuntimeConfig extends NLocationRuntimeBaseConfig { provider: "google"; google: GoogleLocationAdapterOptions; } /** * Serializable map configuration resolved on the server and passed through an * RSC boundary. It intentionally contains no geocoder function or server * secret. A Google browser key is public by design and must be restricted. */ type NLocationRuntimeConfig = NDisabledLocationRuntimeConfig | NLeafletLocationRuntimeConfig | NGoogleLocationRuntimeConfig; interface NLocationRuntimeProviderProps { children: ReactNode; config: NLocationRuntimeConfig; geocoder?: NLocationGeocoderAdapter | null; labels?: Partial; searchMode?: "submit" | "autocomplete"; unavailableReason?: string; } export type { NLocationRuntimeProviderProps as N, NDisabledLocationRuntimeConfig as a, NGoogleLocationRuntimeConfig as b, NLeafletLocationRuntimeConfig as c, NLocationRuntimeConfig as d };