import type { IDataObject, INodePropertyOptions } from 'n8n-workflow'; export declare const AGGREGATE_FUNCTION_OPTIONS: INodePropertyOptions[]; export declare const AGGREGATE_DATE_GROUPING_OPTIONS: INodePropertyOptions[]; export declare const BOARD_GROUP_COLUMN_ID = "group"; export interface AggregateCalculationRow { function: string; columnId?: string; outputName?: string; } export interface AggregateGroupByRow { columnId: string; dateGrouping?: string; } export interface AggregateColumnMeta { id: string; title: string; type: string; } interface AliasPlanEntry { alias: string; outputKey: string; kind: 'group' | 'calculation'; isDate?: boolean; isLabel?: boolean; } export interface AggregateQueryPlan { queryInput: IDataObject; aliases: AliasPlanEntry[]; } export declare function toOutputKey(title: string): string; export declare class AggregateInputError extends Error { } export declare function buildAggregateQueryPlan(params: { boardId: string; calculations: AggregateCalculationRow[]; groupBys: AggregateGroupByRow[]; columns: AggregateColumnMeta[]; filterRules?: IDataObject[]; filtersMatch?: string; limit?: number; }): AggregateQueryPlan; export interface AggregateApiResponse { aggregate?: { results?: Array<{ entries?: Array<{ alias?: string; value?: { result?: number | null; value?: unknown; } | null; }>; }>; }; } export declare function parseAggregateResults(response: AggregateApiResponse, aliases: AliasPlanEntry[]): IDataObject[]; export {};