export interface TraceInsightTask {
    id: string;
    name: string;
    prompt?: string;
    difficulty?: string;
    tags?: string[];
    outcome?: string;
    score?: number;
    gaps?: string[];
}
export interface TraceInsightSuite {
    name: string;
    collectionId?: string;
    tasks: TraceInsightTask[];
}
export interface TraceInsightFinding {
    kind: string;
    severity?: string;
    taskIds: string[];
    evidence?: string;
    proposedFixClass?: string;
}
export interface TraceInsightQuestion {
    id: string;
    question: string;
    why: string;
}
export interface TraceInsightPanelRole {
    id: string;
    name: string;
    responsibility: string;
}
export interface TraceInsightPromptInput {
    suite: TraceInsightSuite;
    findings?: TraceInsightFinding[];
    agent?: Record<string, unknown>;
    totals?: Record<string, unknown>;
    maxRepresentativeTraces?: number;
}
export interface TraceInsightContext {
    suite: TraceInsightSuite;
    scope: string;
    keywords: string[];
    questions: TraceInsightQuestion[];
    panel: TraceInsightPanelRole[];
    findings: TraceInsightFinding[];
    agent: Record<string, unknown> | null;
    totals: Record<string, unknown> | null;
}
export interface TraceInsightQualityGate {
    id: string;
    label: string;
    passed: boolean;
    severity: 'critical' | 'high' | 'medium' | 'low';
    detail: string;
}
export interface TraceInsightReadiness {
    score: number;
    grade: 'external-ready' | 'internal-review' | 'raw-analysis';
    gates: TraceInsightQualityGate[];
}
export declare function tokenizeDomainWords(value: string): string[];
export declare function inferDomainKeywords(suite: TraceInsightSuite): string[];
export declare function domainEvidencePattern(keywords: string[]): RegExp;
export declare function describeTraceInsightScope(suite: TraceInsightSuite): string;
export declare function planTraceInsightQuestions(input: TraceInsightPromptInput): TraceInsightQuestion[];
export declare function buildTraceInsightContext(input: TraceInsightPromptInput): TraceInsightContext;
export declare function scoreTraceInsightReadiness(context: TraceInsightContext): TraceInsightReadiness;
export declare function defaultTraceInsightPanel(): TraceInsightPanelRole[];
export declare function buildTraceInsightPrompt(input: TraceInsightPromptInput): string;
//# sourceMappingURL=insights.d.ts.map