/**
 * Trace Comparison Service
 *
 * Aligns two span trees using LCS-based algorithm for side-by-side comparison.
 * Follows the same pattern as trajectoryDiffService but works with hierarchical spans.
 */
import { Span, CategorizedSpan, AlignedSpanPair, TraceComparisonResult, ToolSimilarityConfig } from '../../types/index.js';
/**
 * Calculate similarity between two spans (0-1).
 * Takes into account span name, category, attributes, and duration.
 */
export declare function calculateSpanSimilarity(left: CategorizedSpan, right: CategorizedSpan, toolConfig?: ToolSimilarityConfig): number;
/**
 * Compare two span trees and return aligned result with statistics.
 * Main entry point for trace comparison.
 */
export declare function compareTraces(leftSpans: Span[], rightSpans: Span[], toolConfig?: ToolSimilarityConfig): TraceComparisonResult;
/**
 * Get a flat list of all aligned pairs for easier iteration
 */
export declare function flattenAlignedTree(aligned: AlignedSpanPair[]): AlignedSpanPair[];
/**
 * Get display info for a comparison type
 */
export declare function getComparisonTypeInfo(type: AlignedSpanPair['type']): {
    label: string;
    color: string;
    bgColor: string;
    borderColor: string;
};
//# sourceMappingURL=traceComparison.d.ts.map