/** * spm_improve — Improviser tool. * * Stateless: takes the document + expectations + clarification answers, * calls the improviser agent, returns improved document content. * * Use after spm_evaluate confirms gaps are sufficiently covered. * The improviser generates paste-ready content for each gap, grounded in * the original document and the PM's clarification answers. */ export interface ImproveInput { document: string; nano_app_id: string; main_expectation: string; sub_expectation: string; all_sub_expectations?: string; prior_clarifications: Array<{ question: string; answer: string; }>; current_content?: string; } export declare function handleImprove(input: ImproveInput, apiKey?: string): Promise;