import { IReference } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle"; import { ITransaction } from "@codingame/monaco-vscode-api/vscode/vs/base/common/observable"; import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri"; import { IDocumentDiff } from "../../../../../editor/common/diff/documentDiffProvider.js"; import { TextEdit } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/languages"; import { ILanguageService } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/languages/language.service"; import { ITextModel } 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 { IResolvedTextEditorModel } from "@codingame/monaco-vscode-model-service-override/vscode/vs/editor/common/services/resolverService"; 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 { IFileService } from "@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files.service"; import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation"; import { IMarkerService } from "@codingame/monaco-vscode-api/vscode/vs/platform/markers/common/markers.service"; import { IUndoRedoElement } from "@codingame/monaco-vscode-api/vscode/vs/platform/undoRedo/common/undoRedo"; import { IUndoRedoService } from "@codingame/monaco-vscode-api/vscode/vs/platform/undoRedo/common/undoRedo.service"; import { IEditorPane } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor"; import { IFilesConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/filesConfiguration/common/filesConfigurationService.service"; import { ITextFileService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/textfile/common/textfiles.service"; import { IAiEditTelemetryService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/editTelemetry/browser/telemetry/aiEditTelemetry/aiEditTelemetryService.service"; import { ICellEditOperation } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCommon"; import { IChatService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService.service"; import { ChatEditKind, IModifiedEntryTelemetryInfo, IModifiedFileEntry, IModifiedFileEntryEditorIntegration, ISnapshotEntry } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/editing/chatEditingService"; import { IChatResponseModel } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/model/chatModel"; import { AbstractChatEditingModifiedFileEntry } from "./chatEditingModifiedFileEntry.js"; interface IMultiDiffEntryDelegate { collapse: (transaction: ITransaction | undefined) => void; } export declare class ChatEditingModifiedDocumentEntry extends AbstractChatEditingModifiedFileEntry implements IModifiedFileEntry { private readonly _multiDiffEntryDelegate; private readonly _textFileService; private readonly _editorWorkerService; readonly initialContent: string; readonly originalModel: ITextModel; readonly modifiedModel: ITextModel; private readonly _docFileEditorModel; get changesCount(): import("@codingame/monaco-vscode-api/vscode/vs/base/common/observable").IObservable; get diffInfo(): import("@codingame/monaco-vscode-api/vscode/vs/base/common/observable").IObservable<{ originalModel: ITextModel; modifiedModel: ITextModel; keep: (changes: import("@codingame/monaco-vscode-api/vscode/vs/editor/common/diff/rangeMapping").DetailedLineRangeMapping) => Promise; undo: (changes: import("@codingame/monaco-vscode-api/vscode/vs/editor/common/diff/rangeMapping").DetailedLineRangeMapping) => Promise; identical: boolean; quitEarly: boolean; changes: readonly import("@codingame/monaco-vscode-api/vscode/vs/editor/common/diff/rangeMapping").DetailedLineRangeMapping[]; moves: readonly import("@codingame/monaco-vscode-api/vscode/vs/editor/common/diff/linesDiffComputer").MovedText[]; }>; get linesAdded(): import("@codingame/monaco-vscode-api/vscode/vs/base/common/observable").IObservable; get linesRemoved(): import("@codingame/monaco-vscode-api/vscode/vs/base/common/observable").IObservable; readonly originalURI: URI; private readonly _textModelChangeService; constructor(resourceRef: IReference, _multiDiffEntryDelegate: IMultiDiffEntryDelegate, telemetryInfo: IModifiedEntryTelemetryInfo, kind: ChatEditKind, initialContent: string | undefined, markerService: IMarkerService, modelService: IModelService, textModelService: ITextModelService, languageService: ILanguageService, configService: IConfigurationService, fileConfigService: IFilesConfigurationService, chatService: IChatService, _textFileService: ITextFileService, fileService: IFileService, undoRedoService: IUndoRedoService, instantiationService: IInstantiationService, aiEditTelemetryService: IAiEditTelemetryService, _editorWorkerService: IEditorWorkerService); getDiffInfo(): Promise; equalsSnapshot(snapshot: ISnapshotEntry | undefined): boolean; createSnapshot(chatSessionResource: URI, requestId: string | undefined, undoStop: string | undefined): ISnapshotEntry; getCurrentContents(): string; restoreFromSnapshot(snapshot: ISnapshotEntry, restoreToDisk?: boolean): Promise; resetToInitialContent(): Promise; resetEditTrackerToInitialContent(): Promise; protected _areOriginalAndModifiedIdentical(): Promise; protected _resetEditsState(tx: ITransaction): void; protected _createUndoRedoElement(response: IChatResponseModel): IUndoRedoElement; acceptAgentEdits(resource: URI, textEdits: (TextEdit | ICellEditOperation)[], isLastEdits: boolean, responseModel: IChatResponseModel | undefined): Promise; protected _doAccept(): Promise; protected _doReject(): Promise; protected _createEditorIntegration(editor: IEditorPane): IModifiedFileEntryEditorIntegration; private _shouldAutoSave; computeEditsFromSnapshots(beforeSnapshot: string, afterSnapshot: string): Promise<(TextEdit | ICellEditOperation)[]>; save(): Promise; revertToDisk(): Promise; } export {};