import * as React from '@theia/core/shared/react'; import { CommandRegistry, MenuModelRegistry, URI } from '@theia/core'; import { ReactWidget, Navigatable, SaveableSource, Message, DelegatingSaveable } from '@theia/core/lib/browser'; import { ReactNode } from '@theia/core/shared/react'; import { CellKind } from '../common'; import { CellRenderer as CellRenderer } from './view/notebook-cell-list-view'; import { NotebookCodeCellRenderer } from './view/notebook-code-cell-view'; import { NotebookMarkdownCellRenderer } from './view/notebook-markdown-cell-view'; import { NotebookModel } from './view-model/notebook-model'; import { NotebookCellToolbarFactory } from './view/notebook-cell-toolbar-factory'; import { interfaces } from '@theia/core/shared/inversify'; import { Emitter } from '@theia/core/shared/vscode-languageserver-protocol'; import { NotebookEditorWidgetService } from './service/notebook-editor-widget-service'; import { NotebookMainToolbarRenderer } from './view/notebook-main-toolbar'; import { Deferred } from '@theia/core/lib/common/promise-util'; import { MarkdownString } from '@theia/core/lib/common/markdown-rendering'; import { NotebookContextManager } from './service/notebook-context-manager'; import { NotebookViewportService } from './view/notebook-viewport-service'; import { NotebookFindWidget } from './view/notebook-find-widget'; import { CellOutputWebview } from './renderers/cell-output-webview'; import { NotebookCellOutputModel } from './view-model/notebook-cell-output-model'; import { NotebookViewModel } from './view-model/notebook-view-model'; export declare const NotebookEditorWidgetContainerFactory: unique symbol; export declare function createNotebookEditorWidgetContainer(parent: interfaces.Container, props: NotebookEditorProps): interfaces.Container; export declare const NotebookEditorProps: unique symbol; interface RenderMessage { rendererId: string; message: unknown; } export interface NotebookEditorProps { uri: URI; readonly notebookType: string; notebookData: Promise; error?: Promise; } export declare const NOTEBOOK_EDITOR_ID_PREFIX = "notebook:"; export declare class NotebookEditorWidget extends ReactWidget implements Navigatable, SaveableSource { static readonly ID = "notebook"; readonly saveable: DelegatingSaveable; protected readonly cellToolbarFactory: NotebookCellToolbarFactory; protected commandRegistry: CommandRegistry; protected menuRegistry: MenuModelRegistry; protected notebookEditorService: NotebookEditorWidgetService; protected notebookMainToolbarRenderer: NotebookMainToolbarRenderer; protected notebookContextManager: NotebookContextManager; protected codeCellRenderer: NotebookCodeCellRenderer; protected markdownCellRenderer: NotebookMarkdownCellRenderer; protected readonly props: NotebookEditorProps; protected readonly viewportService: NotebookViewportService; protected readonly cellOutputWebview: CellOutputWebview; protected readonly _viewModel: NotebookViewModel; protected readonly onDidChangeModelEmitter: Emitter; readonly onDidChangeModel: import("vscode-jsonrpc/lib/common/events").Event; protected readonly onDidChangeReadOnlyEmitter: Emitter; readonly onDidChangeReadOnly: import("vscode-jsonrpc/lib/common/events").Event; protected readonly onPostKernelMessageEmitter: Emitter; readonly onPostKernelMessage: import("vscode-jsonrpc/lib/common/events").Event; protected readonly onDidPostKernelMessageEmitter: Emitter; readonly onDidPostKernelMessage: import("vscode-jsonrpc/lib/common/events").Event; protected readonly onPostRendererMessageEmitter: Emitter; readonly onPostRendererMessage: import("vscode-jsonrpc/lib/common/events").Event; protected readonly onDidReceiveKernelMessageEmitter: Emitter; readonly onDidReceiveKernelMessage: import("vscode-jsonrpc/lib/common/events").Event; protected readonly onDidChangeOutputInputFocusEmitter: Emitter; readonly onDidChangeOutputInputFocus: import("vscode-jsonrpc/lib/common/events").Event; protected readonly renderers: Map; protected _model?: NotebookModel; protected error?: string; protected _ready: Deferred; protected _findWidgetVisible: boolean; protected _findWidgetRef: React.RefObject; protected scrollBarRef: React.RefObject<{ updateScroll(): void; }>; protected debounceFind: import("lodash").DebouncedFunc<() => void>; get notebookType(): string; get ready(): Promise; get model(): NotebookModel | undefined; get viewModel(): NotebookViewModel; protected init(): void; protected waitForData(): Promise; protected onActivateRequest(msg: Message): void; getResourceUri(): URI | undefined; createMoveToUri(resourceUri: URI): URI | undefined; undo(): void; redo(): void; protected render(): ReactNode; protected onCloseRequest(msg: Message): void; requestOuputPresentationChange(cellHandle: number, output?: NotebookCellOutputModel): void; postKernelMessage(message: unknown): void; postRendererMessage(rendererId: string, message: unknown): void; recieveKernelMessage(message: unknown): void; outputInputFocusChanged(focused: boolean): void; showFindWidget(): void; dispose(): void; protected onAfterShow(msg: Message): void; protected onAfterHide(msg: Message): void; } export {}; //# sourceMappingURL=notebook-editor-widget.d.ts.map