import { c as TemplateFilter } from "./types-COJqu9qb.js"; //#region src/helpers/templates/editor/aggregations/types.d.ts declare const aggregationTypes: readonly [{ readonly name: "avg"; readonly type: "metric"; readonly isCommonlyFound: true; }, { readonly name: "cardinality"; readonly type: "metric"; readonly isCommonlyFound: true; }, { readonly name: "max"; readonly type: "metric"; readonly isCommonlyFound: true; }, { readonly name: "min"; readonly type: "metric"; readonly isCommonlyFound: true; }, { readonly name: "percentile_ranks"; readonly type: "metric"; readonly isCommonlyFound: false; }, { readonly name: "percentiles"; readonly type: "metric"; readonly isCommonlyFound: false; }, { readonly name: "stats"; readonly type: "metric"; readonly isCommonlyFound: false; }, { readonly name: "sum"; readonly type: "metric"; readonly isCommonlyFound: true; }, { readonly name: "value_count"; readonly type: "metric"; readonly isCommonlyFound: false; }, { readonly name: "adjacency_matrix"; readonly type: "bucket"; readonly isCommonlyFound: false; }, { readonly name: "auto_date_histogram"; readonly type: "bucket"; readonly isCommonlyFound: false; }, { readonly name: "date_histogram"; readonly type: "bucket"; readonly isCommonlyFound: true; }, { readonly name: "diversified_sampler"; readonly type: "bucket"; readonly isCommonlyFound: false; }, { readonly name: "filters"; readonly type: "bucket"; readonly isCommonlyFound: false; }, { readonly name: "geo_grid"; readonly type: "bucket"; readonly isCommonlyFound: false; }, { readonly name: "histogram"; readonly type: "bucket"; readonly isCommonlyFound: false; }, { readonly name: "range"; readonly type: "bucket"; readonly isCommonlyFound: false; }, { readonly name: "sampler"; readonly type: "bucket"; readonly isCommonlyFound: false; }, { readonly name: "significant_terms"; readonly type: "bucket"; readonly isCommonlyFound: false; }, { readonly name: "terms"; readonly type: "bucket"; readonly isCommonlyFound: true; }, { readonly name: "top_hits"; readonly type: "bucket"; readonly isCommonlyFound: false; }, { readonly name: "variable_width_histogram"; readonly type: "bucket"; readonly isCommonlyFound: false; }]; type AggregationName = (typeof aggregationTypes)[number]["name"]; type AggregationType = (typeof aggregationTypes)[number]["type"]; declare function isAggregationName(name: string): name is AggregationName; //#endregion //#region src/helpers/templates/editor/aggregations/index.d.ts interface FigureRawAggregation { raw: Record; } interface FigureFilterAggregationEntry { label: string; filters: TemplateFilter[]; } interface FigureFilterAggregation { type: "filters"; values: FigureFilterAggregationEntry[]; missing?: string; } interface FigureBaseAggregation { type: AggregationName; field: string; size?: number; missing?: string; } /** * Type for aggregations used in figures, when fetching data */ type FigureAggregation = FigureBaseAggregation | FigureFilterAggregation | FigureRawAggregation; declare function isRawAggregation(agg: FigureAggregation): agg is FigureRawAggregation; //#endregion export { FigureRawAggregation as a, AggregationType as c, FigureFilterAggregationEntry as i, aggregationTypes as l, FigureBaseAggregation as n, isRawAggregation as o, FigureFilterAggregation as r, AggregationName as s, FigureAggregation as t, isAggregationName as u }; //# sourceMappingURL=index-CClNdcZI.d.ts.map