import { CancellationToken } from "@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation"; import { Event } from "@codingame/monaco-vscode-api/vscode/vs/base/common/event"; import { Disposable, IDisposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle"; import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri"; import { IActiveCodeEditor, ICodeEditor } from "@codingame/monaco-vscode-api/vscode/vs/editor/browser/editorBrowser"; import { ICodeEditorService } from "@codingame/monaco-vscode-api/vscode/vs/editor/browser/services/codeEditorService.service"; import { Range } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/core/range"; import { ILanguageService } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/languages/language.service"; import { IValidEditOperation } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/model"; import { IEditorWorkerService } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/services/editorWorker.service"; import { IModelService } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/services/model.service"; import { ITextModelService } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/services/resolverService.service"; import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service"; import { IContextKeyService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service"; import { IDialogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/dialogs/common/dialogs.service"; import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation"; import { ILogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service"; import { IStorageService } from "@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service"; import { ITelemetryService } from "@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry.service"; import { IEditorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service"; import { ITextFileService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/textfile/common/textfiles.service"; import { IChatWidgetService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service"; import { IChatAgentService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatAgents.service"; import { IChatService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService.service"; import { ILanguageModelToolsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/languageModelToolsService.service"; import { Session, StashedSession } from "./inlineChatSession.js"; import { IInlineChatSession2, IInlineChatSessionEndEvent, IInlineChatSessionEvent, ISessionKeyComputer } from "./inlineChatSessionService.js"; import { IInlineChatSessionService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.service"; export declare class InlineChatError extends Error { static readonly code = "InlineChatError"; constructor(message: string); } export declare class InlineChatSessionServiceImpl implements IInlineChatSessionService { private readonly _telemetryService; private readonly _modelService; private readonly _textModelService; private readonly _editorWorkerService; private readonly _logService; private readonly _instaService; private readonly _editorService; private readonly _textFileService; private readonly _languageService; private readonly _chatService; private readonly _chatAgentService; private readonly _chatWidgetService; _serviceBrand: undefined; private readonly _store; private readonly _onWillStartSession; readonly onWillStartSession: Event; private readonly _onDidMoveSession; readonly onDidMoveSession: Event; private readonly _onDidEndSession; readonly onDidEndSession: Event; private readonly _onDidStashSession; readonly onDidStashSession: Event; private readonly _sessions; private readonly _keyComputers; constructor(_telemetryService: ITelemetryService, _modelService: IModelService, _textModelService: ITextModelService, _editorWorkerService: IEditorWorkerService, _logService: ILogService, _instaService: IInstantiationService, _editorService: IEditorService, _textFileService: ITextFileService, _languageService: ILanguageService, _chatService: IChatService, _chatAgentService: IChatAgentService, _chatWidgetService: IChatWidgetService); dispose(): void; createSession(editor: IActiveCodeEditor, options: { headless?: boolean; wholeRange?: Range; session?: Session; }, token: CancellationToken): Promise; moveSession(session: Session, target: ICodeEditor): void; releaseSession(session: Session): void; private _releaseSession; stashSession(session: Session, editor: ICodeEditor, undoCancelEdits: IValidEditOperation[]): StashedSession; getCodeEditor(session: Session): ICodeEditor; getSession(editor: ICodeEditor, uri: URI): Session | undefined; private _key; registerSessionKeyComputer(scheme: string, value: ISessionKeyComputer): IDisposable; private readonly _sessions2; private readonly _onDidChangeSessions; readonly onDidChangeSessions: Event; createSession2(editor: ICodeEditor, uri: URI, token: CancellationToken): Promise; getSession2(uriOrSessionId: URI | string): IInlineChatSession2 | undefined; } export declare class InlineChatEnabler { static Id: string; private readonly _ctxHasProvider; private readonly _ctxHasProvider2; private readonly _ctxHasNotebookInline; private readonly _ctxHasNotebookProvider; private readonly _ctxPossible; private readonly _store; constructor(contextKeyService: IContextKeyService, chatAgentService: IChatAgentService, editorService: IEditorService, configService: IConfigurationService); dispose(): void; } export declare class InlineChatEscapeToolContribution extends Disposable { static readonly Id = "inlineChat.escapeTool"; static readonly DONT_ASK_AGAIN_KEY = "inlineChat.dontAskMoveToPanelChat"; private static readonly _data; constructor(lmTools: ILanguageModelToolsService, inlineChatSessionService: IInlineChatSessionService, dialogService: IDialogService, codeEditorService: ICodeEditorService, chatService: IChatService, logService: ILogService, storageService: IStorageService, instaService: IInstantiationService); }