import type { IntentModel } from "./intent-model.js"; export type RefinementQuestion = { id: string; text: string; category: "audience" | "outcome" | "constraint" | "reference" | "scope" | "risk"; priority: "high" | "medium" | "low"; }; export type RefinementSession = { id: string; intentModelId: string; status: "active" | "clarifying" | "sufficient" | "insufficient" | "superseded"; questions: RefinementQuestion[]; answers: Array<{ questionId: string; text: string; }>; version: number; createdAt: number; updatedAt: number; }; export declare class RefinementError extends Error { constructor(message: string); } /** Generate clarification questions based on gaps in the Intent Model. */ export declare function generateQuestions(model: IntentModel): RefinementQuestion[]; /** Start a refinement session for an Intent Model. */ export declare function startRefinement(intentModel: IntentModel): RefinementSession; /** Answer a clarification question and revise the Intent Model. */ export declare function answerQuestion(session: RefinementSession, model: IntentModel, questionId: string, answerText: string): { session: RefinementSession; model: IntentModel; }; /** Submit an Intent Model for downstream use (e.g., Refined Intent creation). */ export declare function submitForRefinedIntent(model: IntentModel): IntentModel; /** Mark a refinement session as superseded. */ export declare function supersedeRefinement(session: RefinementSession, model: IntentModel): { session: RefinementSession; model: IntentModel; };