import { NotebookCellModel } from './notebook-cell-model'; import { Disposable, Emitter } from '@theia/core'; import { NotebookModel } from './notebook-model'; export interface SelectedCellChangeEvent { cell: NotebookCellModel | undefined; scrollIntoView: boolean; } export type CellEditorFocusRequest = number | 'lastLine' | undefined; /** * Model containing the editor state/view information of a notebook editor. The actual notebook data can be found in the {@link NotebookModel}. */ export declare class NotebookViewModel implements Disposable { protected readonly onDidChangeSelectedCellEmitter: Emitter; readonly onDidChangeSelectedCell: import("@theia/core").Event; selectedCell?: NotebookCellModel; get selectedCellViewModel(): CellViewModel | undefined; readonly cellViewModels: Map; initDataModel(model: NotebookModel): void; setSelectedCell(cell: NotebookCellModel, scrollIntoView?: boolean): void; dispose(): void; } export declare class CellViewModel implements Disposable { protected readonly cell: NotebookCellModel; protected onDispose: () => void; protected readonly onDidRequestCellEditChangeEmitter: Emitter; readonly onDidRequestCellEditChange: import("@theia/core").Event; protected readonly onWillFocusCellEditorEmitter: Emitter; readonly onWillFocusCellEditor: import("@theia/core").Event; protected readonly onWillBlurCellEditorEmitter: Emitter; readonly onWillBlurCellEditor: import("@theia/core").Event; protected _editing: boolean; get editing(): boolean; constructor(cell: NotebookCellModel, onDispose: () => void); requestEdit(): void; requestStopEdit(): void; requestFocusEditor(focusRequest?: CellEditorFocusRequest): void; requestBlurEditor(): void; dispose(): void; } //# sourceMappingURL=notebook-view-model.d.ts.map