import type { ChartDatapoint } from '../../../core/types/chart-data.js'; type AggregationAccessors = { idAccessor: string; parentIdAccessor: string; labelAccessor: string; valueAccessor: string; selfValueAccessor?: string; /** Accessor used to sort sibling spans. Defaults to `labelAccessor`. */ sortAccessor?: string; }; /** * Converts raw span data into flame graph rows: each span becomes one row with * computed `x0`/`x1` geometry (from inclusive value), depth, and children count. * * Numeric values are parsed once per span and cached on an intermediate node so * the sort comparator and layout pass do not re-run `Number()`. Layout uses an * explicit stack rather than recursion to stay safe on very deep call trees. */ export declare function aggregateSpansToFlameGraph(spans: ChartDatapoint[], { idAccessor, parentIdAccessor, labelAccessor, valueAccessor, selfValueAccessor, sortAccessor, }: AggregationAccessors): ChartDatapoint[]; export {}; //# sourceMappingURL=aggregate-spans-to-flame-graph.d.ts.map