import { VSBufferReadableStream } from "../../../../base/common/buffer.js"; import { CancellationToken } from "../../../../base/common/cancellation.js"; import { Event } from "../../../../base/common/event.js"; import { IMarkdownString } from "../../../../base/common/htmlContent.js"; import { Disposable } from "../../../../base/common/lifecycle.js"; import { URI } from "../../../../base/common/uri.js"; import { IConfigurationService } from "../../../../platform/configuration/common/configuration.service.js"; import { IWriteFileOptions, IFileStatWithMetadata } from "../../../../platform/files/common/files.js"; import { ITelemetryService } from "../../../../platform/telemetry/common/telemetry.service.js"; import { IRevertOptions, ISaveOptions, IUntypedEditorInput } from "../../../common/editor.js"; import { EditorModel } from "../../../common/editor/editorModel.js"; import { NotebookTextModel } from "@codingame/monaco-vscode-notebook-service-override/vscode/vs/workbench/contrib/notebook/common/model/notebookTextModel"; import { INotebookEditorModel, INotebookLoadOptions, IResolvedNotebookEditorModel } from "./notebookCommon.js"; import { INotebookLoggingService } from "./notebookLoggingService.service.js"; import { INotebookSerializer } from "./notebookService.js"; import { INotebookService } from "./notebookService.service.js"; import { IFilesConfigurationService } from "../../../services/filesConfiguration/common/filesConfigurationService.service.js"; import { IFileWorkingCopyModelConfiguration, SnapshotContext } from "../../../services/workingCopy/common/fileWorkingCopy.js"; import { IFileWorkingCopyManager } from "@codingame/monaco-vscode-notebook-service-override/vscode/vs/workbench/services/workingCopy/common/fileWorkingCopyManager"; import { IStoredFileWorkingCopyModel, IStoredFileWorkingCopyModelContentChangedEvent, IStoredFileWorkingCopyModelFactory, IStoredFileWorkingCopySaveEvent } from "../../../services/workingCopy/common/storedFileWorkingCopy.js"; import { IUntitledFileWorkingCopyModel, IUntitledFileWorkingCopyModelContentChangedEvent, IUntitledFileWorkingCopyModelFactory } from "@codingame/monaco-vscode-notebook-service-override/vscode/vs/workbench/services/workingCopy/common/untitledFileWorkingCopy"; export declare class SimpleNotebookEditorModel extends EditorModel implements INotebookEditorModel { readonly resource: URI; private readonly _hasAssociatedFilePath; readonly viewType: string; private readonly _workingCopyManager; private readonly _filesConfigurationService; private readonly _onDidChangeDirty; private readonly _onDidSave; private readonly _onDidChangeOrphaned; private readonly _onDidChangeReadonly; private readonly _onDidRevertUntitled; readonly onDidChangeDirty: Event; readonly onDidSave: Event; readonly onDidChangeOrphaned: Event; readonly onDidChangeReadonly: Event; readonly onDidRevertUntitled: Event; private _workingCopy?; private readonly _workingCopyListeners; private readonly scratchPad; constructor(resource: URI, _hasAssociatedFilePath: boolean, viewType: string, _workingCopyManager: IFileWorkingCopyManager, scratchpad: boolean, _filesConfigurationService: IFilesConfigurationService); dispose(): void; get notebook(): NotebookTextModel | undefined; isResolved(): this is IResolvedNotebookEditorModel; canDispose(): Promise; isDirty(): boolean; isModified(): boolean; isOrphaned(): boolean; hasAssociatedFilePath(): boolean; isReadonly(): boolean | IMarkdownString; get hasErrorState(): boolean; revert(options?: IRevertOptions): Promise; save(options?: ISaveOptions): Promise; load(options?: INotebookLoadOptions): Promise; saveAs(target: URI): Promise; private static _isStoredFileWorkingCopy; } export declare class NotebookFileWorkingCopyModel extends Disposable implements IStoredFileWorkingCopyModel, IUntitledFileWorkingCopyModel { private readonly _notebookModel; private readonly _notebookService; private readonly _configurationService; private readonly _telemetryService; private readonly _notebookLogService; private readonly _onDidChangeContent; readonly onDidChangeContent: Event; readonly onWillDispose: Event; readonly configuration: IFileWorkingCopyModelConfiguration | undefined; save: ((options: IWriteFileOptions, token: CancellationToken) => Promise) | undefined; constructor(_notebookModel: NotebookTextModel, _notebookService: INotebookService, _configurationService: IConfigurationService, _telemetryService: ITelemetryService, _notebookLogService: INotebookLoggingService); private setSaveDelegate; dispose(): void; get notebookModel(): NotebookTextModel; snapshot(context: SnapshotContext, token: CancellationToken): Promise; update(stream: VSBufferReadableStream, token: CancellationToken): Promise; getNotebookSerializer(): Promise; get versionId(): string; pushStackElement(): void; } export declare class NotebookFileWorkingCopyModelFactory implements IStoredFileWorkingCopyModelFactory, IUntitledFileWorkingCopyModelFactory { private readonly _viewType; private readonly _notebookService; private readonly _configurationService; private readonly _telemetryService; private readonly _notebookLogService; constructor(_viewType: string, _notebookService: INotebookService, _configurationService: IConfigurationService, _telemetryService: ITelemetryService, _notebookLogService: INotebookLoggingService); createModel(resource: URI, stream: VSBufferReadableStream, token: CancellationToken): Promise; }