/**
 * useAnalytics Hook
 *
 * Hook for tracking analytics events with the Seekora SDK.
 * Supports Analytics V3 payload fields (event_ts, anonymous_id, orgcode, xstoreid);
 * the SDK sends both legacy and v3 fields for backend compatibility.
 */
import type { SeekoraClient, SearchContext, ExtendedEventPayload, DataTypesEventPayload } from '@seekora-ai/search-sdk';
export interface UseAnalyticsOptions {
    client: SeekoraClient;
    enabled?: boolean;
}
/** Payload for trackEvent/trackBatch: supports legacy and Analytics V3 field names */
export type AnalyticsEventPayload = Partial<DataTypesEventPayload> & Partial<ExtendedEventPayload>;
export interface UseAnalyticsReturn {
    trackEvent: (eventType: string, payload: AnalyticsEventPayload, context?: SearchContext | Partial<SearchContext>) => Promise<void>;
    trackClick: (resultId: string, result: any, context?: SearchContext | Partial<SearchContext>, position?: number) => Promise<void>;
    trackConversion: (resultId: string, result: any, value?: number, currency?: string, context?: SearchContext | Partial<SearchContext>) => Promise<void>;
    trackBatch: (events: (AnalyticsEventPayload & {
        event_name?: string;
    })[], context?: SearchContext) => Promise<void>;
}
export declare const useAnalytics: ({ client, enabled, }: UseAnalyticsOptions) => UseAnalyticsReturn;
//# sourceMappingURL=useAnalytics.d.ts.map