UNPKG

@grnsft/if

Version:

Impact Framework

15 lines (14 loc) 674 B
import { AggregationParams, AggregationMetricsWithMethod } from '../../common/types/manifest'; /** * If aggregation is disabled, then returns given `tree`. * Otherwise creates copy of the tree, then applies aggregation to it. */ export declare const aggregate: (tree: any, aggregationParams: AggregationParams) => any; /** * Gets or stores aggregation metrics. */ export declare const storeAggregationMetrics: (aggregationMetrics?: AggregationMetricsWithMethod) => AggregationMetricsWithMethod; /** * Returns aggregation method for given `metric`. */ export declare const getAggregationInfoFor: (metric: string) => import("@grnsft/if-core/types").AggregationOptions;