/** * FeatureGrouper - Groups flows into product-level features using LLM. * Reads persisted flows + module tree, sends to LLM for grouping, validates result. */ import type { Command } from '@oclif/core'; import type { Flow, Module } from '../../../db/schema.js'; import type { LlmOptions } from '../flows/types.js'; import type { FeatureSuggestion } from './types.js'; export declare class FeatureGrouper { private readonly command; private readonly isJson; constructor(command: Command, isJson: boolean); /** * Group flows into product-level features using LLM. */ groupFlowsIntoFeatures(flows: Flow[], modules: Module[], model: string, llmOptions: LlmOptions): Promise; private buildSystemPrompt; buildUserPrompt(flows: Flow[], modules: Module[]): string; private buildModuleTreeText; private buildRetryPrompt; /** * Parse LLM CSV response into FeatureSuggestion[]. * Validates that every flow slug is assigned to exactly one feature. */ static parseFeatureCSV(response: string, validFlowSlugs: Set): { features: FeatureSuggestion[]; errors: string[]; orphanedSlugs: string[]; }; } //# sourceMappingURL=feature-grouper.d.ts.map