export async function hitTestForClusterFeatures(e,t){const r=e._layerView.view,i=r.toScreen("point"===t.type?t:t.extent.center);if(!i)return[];const n=await r.hitTest(i);return n?.results.map((e=>e.graphic)).filter((t=>t?.layer?.id===e?.layer.id&&t.isAggregate))}