import type { AirshipPluginWrapper } from './AirshipPlugin'; import type { CustomEvent } from './types'; /** * Airship analytics. */ export declare class AirshipAnalytics { private readonly plugin; constructor(plugin: AirshipPluginWrapper); /** * Associates an identifier. * * @param key The key. * @param identifier The identifier. `null` to remove. * @returns A promise. */ associateIdentifier(key: string, identifier?: string): Promise; /** * Tracks a screen. * @param screen The screen. `null` to stop tracking. * @returns A promise. */ trackScreen(screen?: string): Promise; /** * Adds a custom event. * @param event The custom event. * @return A promise that returns null if resolved, or an Error if the * custom event is rejected. */ addCustomEvent(event: CustomEvent): Promise; /** * Gets the Airship session ID. The session ID is a UUID that updates on foreground and background. * @returns A promise. */ getSessionId(): Promise; }