import { CancellationToken } from "@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation"; import { ILanguageModelsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/languageModels.service"; import { IChatGoalSummaryService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chatGoalSummaryService.service"; export declare class ChatGoalSummaryService implements IChatGoalSummaryService { private readonly _languageModelsService; readonly _serviceBrand: undefined; private readonly _cache; private readonly _inFlight; constructor(_languageModelsService: ILanguageModelsService); summarize(prompt: string, token: CancellationToken): Promise; private _invokeModel; } /** * Normalizes a raw summary-model response into a goal phrase suitable for the * banner, or `undefined` when nothing usable remains. Strips quotes and a * leading "Goal:", collapses whitespace, suppresses model refusals (see * {@link REFUSAL_PREFIX_RE}), and truncates to {@link MAX_SUMMARY_CHARS}. * * Exported for unit testing. */ export declare function cleanGoalSummary(raw: string): string | undefined;