import type { UserTraits } from '../types'; /** * Primary hook for accessing analytics methods inside components. * * ```tsx * const { track, screen, identify, reset } = useAnalytics(); * * const handlePurchase = () => { * track('purchase_completed', { amount: 49.99, currency: 'USD' }); * }; * ``` */ export declare function useAnalytics(): { track: (event: string, properties?: Record) => void; screen: (name: string, properties?: Record) => void; identify: (userId: string, traits?: UserTraits) => Promise; group: (groupId: string, traits?: Record) => Promise; alias: (newId: string, previousId?: string) => Promise; reset: () => Promise; flush: () => Promise; optOut: () => void; optIn: () => void; }; //# sourceMappingURL=useAnalytics.d.ts.map