/** * A step's name is per step-TYPE, so a fan-out of N identical activities (e.g. * 9× "Scrape Serp Page") all share one label and become indistinguishable. * Number the repeats in chronological order so each instance is addressable — * "Scrape Serp Page #1", "#2", …. Labels that occur once are left untouched. * * Pass spans in their stored (chronological) order so #1 is the earliest. A * TypeScript port of Atlas's `buildSpanLabels`. */ import type { Span } from '#services/workflow_history/correlator.js'; export default function buildSpanLabels(spans: Span[]): Map;