import { formatOgcAggregationsResponse } from "./formatOgcAggregationsResponse";
import { getOgcAggregationQueryParams } from "./getOgcAggregationQueryParams";
import { getOgcCollectionUrl } from "./getOgcCollectionUrl";
import { ogcApiRequest } from "./ogcApiRequest";
export async function searchOgcAggregations(query, options) {
    const url = `${getOgcCollectionUrl(query, options)}/aggregations`;
    const queryParams = getOgcAggregationQueryParams(query, options);
    const rawResponse = (await ogcApiRequest(url, queryParams, options));
    return formatOgcAggregationsResponse(rawResponse);
}
//# sourceMappingURL=searchOgcAggregations.js.map