/** * VibePing SDK — Main entry point * Initializes all tracking modules and exposes the public API. * Supports both ESM import and script tag usage. */ import type { VibePingConfig } from './types'; export type { VibePingConfig } from './types'; export { EventType } from './types'; export type { PageviewEvent, VibePingErrorEvent, VitalEvent, CustomEvent, SessionEvent, IdentifyEvent, TransportPayload, VibePingEvent, } from './types'; /** Public API returned by init() */ export interface VibePingAPI { /** Track a custom event */ track(name: string, properties?: Record): void; /** Associate user traits with the session */ identify(traits: Record): void; /** Flush all pending events */ flush(): void; /** Destroy the SDK and clean up */ destroy(): void; } /** * Initialize VibePing SDK * @param config - SDK configuration * @returns Public API for tracking events */ export declare function init(config: VibePingConfig): VibePingAPI; /** * Track a custom event (must call init() first) */ export declare function track(name: string, properties?: Record): void; /** * Identify user traits (must call init() first) */ export declare function identify(traits: Record): void;