import { LlmClient } from "../llm/client.js"; import type { ConversationResult } from "./types.js"; import type { NormalizedConversation } from "../ingestion/types.js"; /** Defensively parse turnDescriptions from LLM output into Record. */ export declare function parseTurnDescriptions(val: unknown): Record | undefined; /** * Generate step-level diagnosis for the worst conversations. * Selects bottom N by aggregate metric score, runs 1 LLM call per conversation. * Processes in parallel batches for speed. */ export declare function generateDiagnoses(llm: LlmClient, results: ConversationResult[], conversations: NormalizedConversation[], systemPrompt: string, onProgress?: (current: number, total: number) => void, concurrency?: number): Promise; //# sourceMappingURL=diagnosis.d.ts.map