UNPKG

@optic7409/resolvo-analytics

Version:

Simplified analytics client library for Next.js with automatic SSR handling, one-line integration, and comprehensive tracking

16 lines (15 loc) 612 B
import React from 'react'; import { AnalyticsClient } from '../../core/AnalyticsClient'; import { AnalyticsConfig } from '../../types'; interface AnalyticsContextType { client: AnalyticsClient | null; isReady: boolean; } export declare const AnalyticsContext: React.Context<AnalyticsContextType>; interface AnalyticsProviderProps { config: AnalyticsConfig; children: React.ReactNode; } export declare function AnalyticsProvider({ config, children }: AnalyticsProviderProps): import("react/jsx-runtime").JSX.Element; export declare function useAnalyticsContext(): AnalyticsContextType; export {};