/**
 * 四大象限分析模板
 * 分析 Trace 中的时间分布：Binder / Lock / IO / Computation
 */
import { TraceProcessorService } from '../traceProcessorService';
export interface FourQuadrantResult {
    summary: {
        totalMs: number;
        breakdown: QuadrantBreakdown[];
    };
    visualization: {
        type: 'pie_chart' | 'bar_chart';
        data: VisualizationDataPoint[];
    };
    details: {
        binder: CategoryDetail;
        lock: CategoryDetail;
        io: CategoryDetail;
        computation: CategoryDetail;
    };
}
export interface QuadrantBreakdown {
    category: 'binder' | 'lock' | 'io' | 'computation';
    durationMs: number;
    percentage: number;
    count: number;
}
export interface VisualizationDataPoint {
    label: string;
    value: number;
    percentage: number;
    color: string;
}
export interface CategoryDetail {
    totalMs: number;
    count: number;
    avgMs: number;
    topSlices: {
        name: string;
        durationMs: number;
        timestamp: number;
    }[];
}
export declare class FourQuadrantAnalyzer {
    private traceProcessor;
    constructor(traceProcessor: TraceProcessorService);
    /**
     * 执行四大象限分析
     * @param traceId Trace ID
     * @param startTs 开始时间戳（纳秒），可选
     * @param endTs 结束时间戳（纳秒），可选
     * @param threadId 线程ID，可选（如果只分析特定线程）
     */
    analyze(traceId: string, startTs?: number, endTs?: number, threadId?: number): Promise<FourQuadrantResult>;
    private buildTimeCondition;
    private analyzeBinder;
    private analyzeLock;
    private analyzeIO;
    private analyzeComputation;
    private resultToRows;
    private getCategoryLabel;
    private getCategoryColor;
}
//# sourceMappingURL=fourQuadrantAnalysis.d.ts.map