import { SelfDescribingEvent, StructuredEvent, PageViewEvent, CommonEventProperties, ScreenView, WebViewEvent } from './api'; /** * Check if a V2 mobile interface is available. */ export declare function hasMobileInterface(): boolean; /** * Track a web event. * This method allows the tracking of any Snowplow event. It is used by the Snowplow web tracker WebView plugin to forward events to mobile trackers. * Use this method to track either Self-Describing events, which are described by schemas, or that are not i.e. PageView and Structured events. * * @param event - Event information * @param trackers - The tracker identifiers which the event will be sent to */ export declare function trackWebViewEvent(event: WebViewEvent & CommonEventProperties, trackers?: Array): void; /** * Track a self-describing event happening on this page. * A custom event type, allowing for an event to be tracked using your own custom schema * and a data object which conforms to the supplied schema * * @param event - The event information * @param trackers - The tracker identifiers which the event will be sent to */ export declare function trackSelfDescribingEvent(event: SelfDescribingEvent & CommonEventProperties, trackers?: Array): void; /** * Track a structured event * A classic style of event tracking, allows for easier movement between analytics * systems. A loosely typed event, creating a Self Describing event is preferred, but * useful for interoperability. * * @param event - The Structured Event properties * @param trackers - The tracker identifiers which the event will be sent to */ export declare function trackStructEvent(event: StructuredEvent & CommonEventProperties, trackers?: Array): void; /** * Track a visit to a web page * * @param event - The Page View Event properties * @param trackers - The tracker identifiers which the event will be sent to */ export declare function trackPageView(event?: PageViewEvent & CommonEventProperties, trackers?: Array): void; /** * Track a screen view event, which represents user viewing a screen within a mobile application. * * @param event - The event information * @param trackers - The tracker identifiers which the event will be sent to */ export declare function trackScreenView(event: ScreenView & CommonEventProperties, trackers?: Array): void;