UNPKG

autumn-js

Version:
21 lines (18 loc) 673 B
import * as swr from 'swr'; import { SWRConfiguration } from 'swr'; import { EventAggregationParams, AggregatedEventRow, EventAggregationResponse } from '../client/types/clientAnalyticsTypes.mjs'; import { A as AutumnError } from '../error-DHbclCVh.mjs'; import 'zod/v4'; declare const useAggregateEvents: (params: EventAggregationParams & { swrConfig?: SWRConfiguration; }) => { list: AggregatedEventRow[] | undefined; total: Record<string, { count: number; sum: number; }> | undefined; isLoading: boolean; error: AutumnError | undefined; refetch: swr.KeyedMutator<EventAggregationResponse>; }; export { useAggregateEvents };