import { TextEdit } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/languages"; import { NotebookTextModel } from "@codingame/monaco-vscode-notebook-service-override/vscode/vs/workbench/contrib/notebook/common/model/notebookTextModel"; import { ICellEditOperation } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCommon"; import { INotebookService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookService.service"; /** * When asking LLM to generate a new notebook, LLM might end up generating the notebook * using the raw file format. * E.g. assume we ask LLM to generate a new Github Issues notebook, LLM might end up * genrating the notebook using the JSON format of github issues file. * Such a format is not known to copilot extension and those are sent over as regular * text edits for the Notebook URI. * * In such cases we should accumulate all of the edits, generate the content and deserialize the content * into a notebook, then generate notebooke edits to insert these cells. */ export declare class ChatEditingNewNotebookContentEdits { private readonly notebook; private readonly _notebookService; private readonly textEdits; constructor(notebook: NotebookTextModel, _notebookService: INotebookService); acceptTextEdits(edits: TextEdit[]): void; generateEdits(): Promise; private generateContent; }