/** * Normalizes the origin analytics.js fetches its settings and its remote plugins from, which ad blockers drop when it * is Segment's own cdn. Returns `undefined` when unset or invalid, which keeps the default. */ declare function resolveCdnUrl(cdnUrl?: string): string | undefined; /** * Normalizes the host events are delivered to. analytics-next takes it without a protocol (`host/basePath`) and * prepends one, so a value that carries it is accepted and stripped instead of producing `https://https://host`. * Returns `undefined` when unset or invalid, which keeps the default. */ declare function resolveApiHost(apiHost?: string): string | undefined; /** * Whether the current client is a crawler or another bot, which the provider never loads analytics for. Exported so * code that sends events without the provider (a beacon fired before analytics loads) applies the same rule instead * of depending on `isbot` itself. * * The user agent is required and never read from the runtime: in a browser pass `navigator.userAgent`, on a server * the request's header. A server fallback would read Node's own `Node.js/` agent (Node 21+), which `isbot` * flags. A missing user agent (`null`, `undefined` or empty) is not treated as a bot, stated here rather than left to * whatever `isbot` returns for an empty string, which a minor release could change. */ declare function isBotClient(userAgent: string | null | undefined): boolean; export { isBotClient, resolveApiHost, resolveCdnUrl };