type AggregateType = 'count' | 'avg' | 'sum' | 'min' | 'max'; interface AggregateRecord { __data?: Record; [key: string]: unknown; } export declare class AggregateProperty { readonly __kind: "AggregateProperty"; readonly aggregateType: AggregateType; readonly relationship: string | undefined; readonly field: string | undefined; readonly mysqlFunction: string; readonly resultType: 'float' | 'number'; constructor(aggregateType: AggregateType, relationship?: string, field?: string); compute(relatedRecords: AggregateRecord[]): number | null; } export declare function count(relationship: string): AggregateProperty; export declare function avg(relationshipOrField: string, field?: string): AggregateProperty; export declare function sum(relationshipOrField: string, field?: string): AggregateProperty; export declare function min(relationshipOrField: string, field?: string): AggregateProperty; export declare function max(relationshipOrField: string, field?: string): AggregateProperty; export {};