import { AggregationFunction, CalculatedField, FieldStats, PivotResult, PivotValueField, getAggregationLabel } from '@smallwebco/tinypivot-core'; import { Ref } from 'vue'; export { getAggregationLabel }; /** * Main pivot table composable */ export declare function usePivotTable(data: Ref[]>, enableDrillDown?: Ref): { rowFields: Ref; columnFields: Ref; valueFields: Ref<{ aggregation: AggregationFunction; customFn?: import('@smallwebco/tinypivot-core').CustomAggregationFn | undefined; customLabel?: string | undefined; customSymbol?: string | undefined; field: string; label?: string | undefined; }[], PivotValueField[] | { aggregation: AggregationFunction; customFn?: import('@smallwebco/tinypivot-core').CustomAggregationFn | undefined; customLabel?: string | undefined; customSymbol?: string | undefined; field: string; label?: string | undefined; }[]>; showRowTotals: Ref; showColumnTotals: Ref; calculatedFields: Ref<{ id: string; name: string; formula: string; formatAs?: "number" | "percent" | "currency" | undefined; decimals?: number | undefined; }[], CalculatedField[] | { id: string; name: string; formula: string; formatAs?: "number" | "percent" | "currency" | undefined; decimals?: number | undefined; }[]>; collapsedPaths: Ref & Omit, keyof Set>, Set | (Set & Omit, keyof Set>)>; availableFields: import('vue').ComputedRef; unassignedFields: import('vue').ComputedRef; isConfigured: import('vue').ComputedRef; pivotResult: import('vue').ComputedRef; addRowField: (field: string) => void; removeRowField: (field: string) => void; addColumnField: (field: string) => void; removeColumnField: (field: string) => void; addValueField: (field: string, aggregation?: AggregationFunction) => void; removeValueField: (field: string, aggregation?: AggregationFunction) => void; updateValueFieldAggregation: (field: string, oldAgg: AggregationFunction, newAgg: AggregationFunction) => void; clearConfig: () => void; moveField: (from: { area: 'row' | 'column' | 'value'; index: number; }, to: { area: 'row' | 'column' | 'value'; index: number; }) => void; autoSuggestConfig: () => void; addCalculatedField: (field: CalculatedField) => void; removeCalculatedField: (id: string) => void; toggleCollapsedPath: (key: string, altKey: boolean, _rowFields: string[], currentPivotResult: PivotResult | null) => void; }; //# sourceMappingURL=usePivotTable.d.ts.map