import { ITextModel } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/model"; import { Position } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/core/position"; import { IFileService } from "@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files.service"; import { CancellationToken } from "@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation"; import { CompletionContext, CompletionItemProvider, CompletionList } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/languages"; import { ILanguageModelToolsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/tools/languageModelToolsService.service"; /** * Provides autocompletion for the variables inside prompt bodies. * - #file: paths to files and folders in the workspace * - # tool names */ export declare class PromptBodyAutocompletion implements CompletionItemProvider { private readonly fileService; private readonly languageModelToolsService; /** * Debug display name for this provider. */ readonly _debugDisplayName: string; /** * List of trigger characters handled by this provider. */ readonly triggerCharacters: string[]; constructor(fileService: IFileService, languageModelToolsService: ILanguageModelToolsService); /** * The main function of this provider that calculates * completion items based on the provided arguments. */ provideCompletionItems(model: ITextModel, position: Position, context: CompletionContext, token: CancellationToken): Promise; private collectToolCompletions; private collectFilePathCompletions; /** * Finds a file reference that suites the provided `position`. */ private findVariableReference; private collectDefaultCompletions; }