import { FilterData } from '../api/types/getFilters_new'; import { NormalizedMetapropertyFilters } from '../store/useAssetFilterStore'; /** * Normalizes the `filters` response to the nested count object the smartfilter components * consume. This is the sole source for smartfilter option counts. * * Counts are filter-aware only when the query was sent with an asset filter; without one the * gateway returns portal-wide counts. Options with no assets under the active filter are * already dropped server-side, so anything arriving here is expected to have a count. * * Keyed by id rather than label because labels are localised. * * Output format: * { * smartfilterId: { * metapropertyId: { * optionId: count * } * } * } * * @param filterData - GraphQL `filters` response * @returns Normalized nested counts by id */ export declare function normalizeFilterCounts(filterData: FilterData | null | undefined): NormalizedMetapropertyFilters;