/**
 * Session insights endpoint — /v1/insights/:sessionId
 * Provides trace analysis, complexity metrics, and skill match scores
 * for a given session. Feeds L3 data pipeline.
 */
import type * as http from 'node:http';
import { type QualityScore } from '../data/quality.js';
export interface SessionInsight {
    sessionId: string;
    messageCount: number;
    model: string;
    duration: string;
    complexity: number;
    toolsUsed: string[];
    toolCallCount: number;
    errorRecoveryCount: number;
    workflowStepCount: number;
    topKeywords: string[];
    worthSynthesizing: boolean;
    worthReason?: string;
    matchedSkills: Array<{
        id: string;
        name: string;
        score: number;
    }>;
    quality: QualityScore;
}
export declare function handleInsights(_req: http.IncomingMessage, res: http.ServerResponse, sessionId: string): Promise<void>;
export interface BatchInsightSummary {
    sessionCount: number;
    averageComplexity: number;
    averageQuality: number;
    totalToolCalls: number;
    totalErrorRecoveries: number;
    modelDistribution: Record<string, number>;
    topKeywords: Array<{
        keyword: string;
        count: number;
    }>;
    worthSynthesizing: number;
    sessions: Array<{
        id: string;
        complexity: number;
        quality: number;
        model: string;
    }>;
}
export declare function handleBatchInsights(_req: http.IncomingMessage, res: http.ServerResponse): Promise<void>;
