import React from 'react'; import { AnalyticsPlugin } from 'analytics'; import { Traits } from '@ninetailed/client-sdk-core'; declare type Options = Object & { plugins?: { all: boolean; [key: string]: boolean; }; }; declare type Page = (data?: Object, options?: Options) => Promise; declare type Track = (event: string, payload?: Object, options?: Options) => Promise; declare type Identify = (uid: string, traits?: Traits, options?: Options) => Promise; declare type Reset = () => Promise; declare type AnalyticsArgs = { page: Page; track: Track; identify: Identify; reset: Reset; }; declare global { interface Window { ninetailed: AnalyticsArgs & { reset: Reset; }; } } declare type AnalyticsProviderProps = { apiKey: string; plugins?: AnalyticsPlugin[]; }; export declare const AnalyticsProvider: React.FC; export declare const useAnalytics: () => AnalyticsArgs; export {};