/**
 * Trace Grouping Utility
 *
 * Groups flat spans by traceId and calculates summary statistics
 * for trace list display.
 */
import { Span, TraceSummary } from '../../types/index.js';
/**
 * Group flat spans by traceId and calculate summary statistics
 *
 * @param spans - Flat array of spans from API
 * @returns Array of TraceSummary objects, sorted by startTime descending (newest first)
 */
export declare function groupSpansByTrace(spans: Span[]): TraceSummary[];
/**
 * Get spans for a specific trace from grouped data
 */
export declare function getSpansForTrace(summaries: TraceSummary[], traceId: string): Span[];
//# sourceMappingURL=traceGrouping.d.ts.map