// deno-lint-ignore-file no-explicit-any import type { Keyof, TaggedVariant } from "@fabric/core"; export type AggregateOptions = Record>; export type AggregateFn = CountAggregate; export interface CountAggregate extends TaggedVariant<"AggregateCount"> { field: Keyof; } export interface SumAggregate extends TaggedVariant<"AggregateSum"> { field: Keyof; } export interface AvgAggregate extends TaggedVariant<"AggregateAvg"> { field: Keyof; } export interface MinAggregate extends TaggedVariant<"AggregateMin"> { field: Keyof; } export interface MaxAggregate extends TaggedVariant<"AggregateMax"> { field: Keyof; }