/**
 * 分析模板管理器
 * 根据用户问题自动选择合适的分析模板
 */
import { TraceProcessorService } from '../traceProcessorService';
import { FourQuadrantResult } from './fourQuadrantAnalysis';
import { CpuCoreDistribution } from './cpuCoreAnalysis';
import { FrameStatsResult } from './frameStatsAnalysis';
export type AnalysisTemplateName = 'four_quadrant' | 'cpu_core_distribution' | 'frame_stats' | 'custom';
export interface AnalysisTemplateResult {
    templateName: AnalysisTemplateName;
    data: FourQuadrantResult | CpuCoreDistribution | FrameStatsResult | any;
    summary: string;
}
export interface TemplateSelectionContext {
    question: string;
    traceId: string;
    metadata?: {
        hasFrameData?: boolean;
        hasSchedData?: boolean;
        processNames?: string[];
        detectedVsyncPeriodNs?: string | bigint | number;
        deviceRefreshRate?: number;
    };
}
export declare class AnalysisTemplateManager {
    private traceProcessor;
    private fourQuadrantAnalyzer;
    private cpuCoreAnalyzer;
    constructor(traceProcessor: TraceProcessorService);
    /**
     * 根据用户问题自动选择并执行分析模板
     */
    analyzeWithAutoTemplate(context: TemplateSelectionContext): Promise<AnalysisTemplateResult | null>;
    /**
     * 根据问题选择合适的模板
     */
    private selectTemplate;
    /**
     * 执行指定的分析模板
     */
    private executeTemplate;
    private executeFourQuadrant;
    private executeCpuCoreDistribution;
    private executeFrameStats;
    /**
     * 查找主线程 utid
     */
    private findMainThread;
    /**
     * 查找主进程名称
     */
    private findMainProcess;
    /**
     * 从问题中提取四大象限分析参数
     */
    private extractFourQuadrantParams;
    private parseTimeRange;
    private resolveThreadId;
    private findUtidByTid;
    /**
     * 生成分析摘要
     */
    private generateSummary;
    private summarizeFourQuadrant;
    private summarizeCpuCoreDistribution;
    private summarizeFrameStats;
    private getCategoryLabel;
}
//# sourceMappingURL=templateManager.d.ts.map