import type { AnalystFinding, AnalystSeverity, EvidenceRef } from '../analyst/types';
import type { FailureClusterInsight } from '../contract/insight-report';
import type { LayerResult, VerificationReport } from '../multi-layer-verifier';
import type { FailureClusterReport } from '../pipelines/failure-cluster';
import type { WorkflowTraceEnvelope, WorkflowTraceSummary } from './types';
export type WorkflowFeedbackPackVersion = 'workflow-feedback-pack-v1';
export type WorkflowFeedbackSeverity = AnalystSeverity;
export interface WorkflowToolUsageSummary {
    totalCalls: number;
    erroredCalls: number;
    byTool: Record<string, {
        calls: number;
        errors: number;
    }>;
}
export interface WorkflowVerifierFindingSummary {
    severity: WorkflowFeedbackSeverity;
    message: string;
    evidence?: string;
    detail?: Record<string, unknown>;
}
export interface WorkflowVerifierLayerSummary {
    layer: string;
    status: LayerResult['status'];
    score?: number;
    durationMs: number;
    reason?: string;
    findings: WorkflowVerifierFindingSummary[];
    diagnostics?: Record<string, number | null>;
}
export interface WorkflowVerifierSummary {
    allPass: boolean;
    blendedScore: number;
    durationMs: number;
    failedLayers: string[];
    layers: WorkflowVerifierLayerSummary[];
}
export interface WorkflowFailureClusterInput {
    id: string;
    name: string;
    share?: number;
    runCount?: number;
    exemplars?: readonly string[];
    suggestedFix?: string;
    metadata?: Record<string, unknown>;
}
export interface WorkflowFailureClusterSummary {
    id: string;
    name: string;
    share: number;
    runCount?: number;
    exemplars: string[];
    suggestedFix?: string;
    source: 'failure-cluster-view' | 'insight-report' | 'custom';
    metadata?: Record<string, unknown>;
}
export interface WorkflowAnalystFindingSummary {
    findingId: string;
    analystId: string;
    severity: WorkflowFeedbackSeverity;
    area: string;
    claim: string;
    confidence: number;
    subject?: string;
    recommendedAction?: string;
    evidenceRefs: EvidenceRef[];
}
export interface WorkflowAnalystFeedbackPack {
    schemaVersion: WorkflowFeedbackPackVersion;
    runId: string;
    generatedAt: string;
    summary: WorkflowTraceSummary;
    verifier?: WorkflowVerifierSummary;
    toolUsage: WorkflowToolUsageSummary;
    failureClusters: WorkflowFailureClusterSummary[];
    findings: WorkflowAnalystFindingSummary[];
    recommendations: string[];
    driverContextLines: string[];
}
export interface WorkflowFeedbackPackLimits {
    findings?: number;
    clusters?: number;
    layerFindings?: number;
    recommendations?: number;
    contextLines?: number;
}
export interface BuildWorkflowAnalystFeedbackPackOptions {
    envelope: WorkflowTraceEnvelope | unknown;
    verifier?: VerificationReport;
    analystFindings?: readonly AnalystFinding[];
    failureClusters?: FailureClusterReport | FailureClusterInsight | readonly WorkflowFailureClusterInput[];
    generatedAt?: string;
    limits?: WorkflowFeedbackPackLimits;
}
export declare function buildWorkflowAnalystFeedbackPack(options: BuildWorkflowAnalystFeedbackPackOptions): WorkflowAnalystFeedbackPack;
export declare function renderWorkflowFeedbackPack(pack: WorkflowAnalystFeedbackPack, options?: {
    maxChars?: number;
}): string;
//# sourceMappingURL=feedback-pack.d.ts.map