export type AnalyticsSnippetOptions = { /** * URL of the analytics.js bundle. Defaults to Segment's CDN, which ad blockers drop, so dapps can point it at a * first party proxy instead. */ analyticsUrl?: string; /** * Origin analytics.js fetches its settings from. Defaults to the origin of `analyticsUrl`, which is what a proxy * serving both the bundle and the settings needs. */ cdnUrl?: string; /** * Host the events are delivered to, without a protocol (`host/basePath`). Defaults to Segment's ingestion endpoint, * which ad blockers drop just like its CDN, so dapps can point it at a first party proxy instead. Example: * `api.example.com/v1`. * * analytics.js prepends the protocol and appends the method path (`/t`, `/i`, `/p`), it takes neither of them here. */ apiHost?: string; }; type SegmentIntegrationSettings = boolean | Record; export type AnalyticsLoadOptions = { integrations?: Record; [key: string]: unknown; }; /** * Merges the configured first party ingestion host into the given load options, keeping the rest of them and the other * integrations untouched, and returns them as they came when there is none so Segment's own ingestion stays in place. * Exported for dapps that call `analytics.load` themselves instead of going through the analytics middleware. */ export declare function getAnalyticsLoadOptions(loadOptions?: AnalyticsLoadOptions): AnalyticsLoadOptions | undefined; /** * Points the snippet at a different analytics.js bundle. Takes effect on the next `analytics.load` call, so it must * run before the analytics middleware is created. */ export declare function configureAnalyticsSnippet(newOptions?: AnalyticsSnippetOptions): void; /** * Installs Segment's snippet, which queues every call made before analytics.js is loaded and replays them once it is. */ export declare function installAnalyticsSnippet(): void; export {};