import { IDynamicVariable } from "../../common/attachments/chatVariables.js"; import { IChatVariablesService } from "../../common/attachments/chatVariables.service.js"; import { ToolAndToolSetEnablementMap } from "../../common/tools/languageModelToolsService.js"; import { IChatWidget } from "../chat.js"; import { IChatWidgetService } from "../chat.service.js"; import { URI } from "../../../../../base/common/uri.js"; /** * The references in the prompt that the widget's input represents, including * those of inline attachment pills. Their ranges are in the text that * {@link IChatWidget.getInput} returns. * * @param options.forModel Whether the references are parsed into the request * sent to the model, which reads each pill as the name and location of its * attachment rather than the text that the pill stands for. */ export declare function getDynamicVariablesForWidget(widget: IChatWidget, options?: { readonly forModel?: boolean; }): ReadonlyArray; /** * The references in the widget's input editor, with ranges in the editor's * text. Unlike {@link getDynamicVariablesForWidget}, these exclude inline * attachment pills, which stand in for their text with a single character. */ export declare function getInputDynamicVariablesForWidget(widget: IChatWidget): ReadonlyArray; export declare function getSelectedToolAndToolSetsForWidget(widget: IChatWidget): ToolAndToolSetEnablementMap; export declare class ChatVariablesService implements IChatVariablesService { private readonly chatWidgetService; _serviceBrand: undefined; constructor(chatWidgetService: IChatWidgetService); getDynamicVariables(sessionResource: URI): ReadonlyArray; getSelectedToolAndToolSets(sessionResource: URI): ToolAndToolSetEnablementMap; }