import { AggregationBucket, SearchAggregation, SearchAggregationSpec } from '../types/SearchAggregation'; import { SearchRes } from '../types/Search'; /** Validate and clone a search aggregation into the protobuf request shape. */ export declare const buildSearchAggregation: (aggregation: SearchAggregation, depth?: number) => SearchAggregationSpec; /** Parse and split search aggregation buckets by query vector. */ export declare const formatSearchAggregationResult: (searchRes: SearchRes) => AggregationBucket[][];