import { Aggregate } from '../ir.js';
/**
 * Returns the first aggregate in a select, having, or orderBy value. It does
 * not enter include subqueries, which compile with their own aggregates.
 * A plain object is a nested select; its fields may use any names.
 */
export declare function findAggregate(value: unknown): Aggregate | undefined;
