import { buildRangeFilter } from '../../../../../common' ; import { AggTypesDependencies } from '../../agg_types' ; import { IBucketAggConfig } from '../bucket_agg_type' ; internal export const createFilterRange = ( getFieldFormatsStart ) => { return ( aggConfig , params ) => { const { deserialize } = getFieldFormatsStart ( ) ; return buildRangeFilter ( aggConfig . params . field , params , aggConfig . getIndexPattern ( ) , deserialize ( aggConfig . toSerializedFieldFormat ( ) ) . convert ( params ) ) ; } ; } ;