autumn-js
Version:
Autumn JS Library
21 lines (18 loc) • 671 B
TypeScript
import * as swr from 'swr';
import { SWRConfiguration } from 'swr';
import { EventAggregationParams, AggregatedEventRow, EventAggregationResponse } from '../client/types/clientAnalyticsTypes.js';
import { A as AutumnError } from '../error-DHbclCVh.js';
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 };