import type { ChartDatapoint } from '../../../core/types/chart-data.js'; type OrderingAccessors = { spanIdAccessor: string; parentIdAccessor: string; x0Accessor: string; x1Accessor: string; }; /** * Traverses the span forest in DFS pre-order (parent before children, siblings * sorted by `x0` with original index as tie-breaker) and returns a flat list * where each span carries its `depth`. Zero-width spans are widened by 1 so * they remain paintable on the canvas. * * Numeric x0/x1 are parsed once per span and cached on the internal `Entry`, * so the sort comparator does not re-run `Number()` at every comparison. * Traversal is iterative to avoid stack overflows on deep flame graphs. */ export declare function orderSpansHierarchically(spans: ChartDatapoint[], { spanIdAccessor, parentIdAccessor, x0Accessor, x1Accessor, }: OrderingAccessors): ChartDatapoint[]; export {}; //# sourceMappingURL=order-spans-hierarchically.d.ts.map