import { IField } from '../field' ; import { IndexPattern } from '../../../../../../../src/plugins/data/common' ; import { IESAggSource } from '../../sources/es_agg_source' ; import { FIELD_ORIGIN } from '../../../../common/constants' ; export interface IESAggField extends IField { getValueAggDsl ( indexPattern ) : unknown | null ; getBucketCount ( ) : number ; } export interface CountAggFieldParams { label ? : string ; source : IESAggSource ; origin : FIELD_ORIGIN ; }