import type { Accountability, Query, SchemaOverview } from '@directus/types';
import type { SelectionNode } from 'graphql';
/**
 * Resolve the aggregation query based on the requested aggregated fields
 */
export declare function getAggregateQuery(rawQuery: Query, selections: readonly SelectionNode[], schema: SchemaOverview, accountability?: Accountability | null, collection?: string): Promise<Query>;
