import { WebPlugin } from '@capacitor/core'; import type { PluginListenerHandle } from '@capacitor/core'; export interface TrackingEvent { type: 'trackingEvent'; event: string; properties?: Record; timestamp?: string; } export interface ProviderEvent { type: 'error' | 'providerStatusChange'; provider?: string; status?: string; error?: Error; message?: string; } import type { UnifiedTrackingPlugin, UnifiedTrackingConfig, ErrorContext, RevenueData, ConsentSettings, TrackingEventPayload } from '../definitions.js'; export declare class UnifiedTrackingCapacitorPlugin extends WebPlugin implements UnifiedTrackingPlugin { private core; constructor(); initialize(options?: UnifiedTrackingConfig): Promise; track(event: string, properties?: Record): Promise; identify(userId: string, traits?: Record): Promise; setUserProperties(properties: Record): Promise; logError(error: Error | string, context?: ErrorContext): Promise; logRevenue(revenue: RevenueData): Promise; logScreenView(screenName: string, properties?: Record): Promise; setConsent(consent: ConsentSettings): Promise; reset(): Promise; flush(): Promise; getActiveProviders(): Promise; enableDebugMode(enabled: boolean): Promise; addListener(eventName: 'trackingEvent' | 'error' | 'providerStatusChange', listenerFunc: (event: TrackingEventPayload) => void): Promise; } export declare function registerCapacitorPlugin(): Promise;