import { AnalyticsConfig, AnalyticsData, AnalyticsParameters, RelativeTimePeriod, VisualizationResult } from '../types'; /** * Hook to fetch analytics configurations for a connection */ export declare function useAnalyticsConfig(preset?: string): { configs: AnalyticsConfig[]; timePeriod: RelativeTimePeriod; includeDelta: boolean; loading: boolean; error: Error | null; refetch: () => Promise; }; /** * Hook to fetch and execute a single analytics. * * `parameters` is a flat map of overrides for the targeted insight (e.g. `{ lookAheadDays: 30 }`). */ export declare function useAnalytics(analyticsId: string, timePeriod: RelativeTimePeriod, userIanaZone?: string, includeDelta?: boolean, enabled?: boolean, parameters?: Record): { visualization: VisualizationResult | null; analysisId: string | null; loading: boolean; error: Error | null; refetch: () => Promise; }; /** * Hook to fetch multiple analytics for all enabled configs. * * `parameters` is a per-insight map keyed by analyticsId. For each insight, only the entry * under its own id is forwarded to `fetchAnalytics`, so values can never leak across insights. */ export declare function useAllAnalytics(configs: AnalyticsConfig[], timePeriod: RelativeTimePeriod, userIanaZone?: string, includeDelta?: boolean, enabled?: boolean, parameters?: AnalyticsParameters): { analytics: AnalyticsData[]; loading: boolean; error: Error | null; refetch: () => Promise; };