import { CancellationToken, Event } from '@theia/core'; import { URI as TheiaURI } from '../types-impl'; import type * as theia from '@theia/plugin'; import { NotebookCellStatusBarListDto, NotebookDataDto, NotebookDocumentsAndEditorsDelta, NotebooksExt, Plugin } from '../../common'; import { RPCProtocol } from '../../common/rpc-protocol'; import { UriComponents } from '../../common/uri-components'; import { CommandRegistryImpl } from '../command-registry'; import { BinaryBuffer } from '@theia/core/lib/common/buffer'; import { NotebookDocument } from './notebook-document'; import { NotebookEditor } from './notebook-editor'; import { EditorsAndDocumentsExtImpl } from '../editors-and-documents'; import { DocumentsExtImpl } from '../documents'; export declare class NotebooksExtImpl implements NotebooksExt { private textDocumentsAndEditors; private textDocuments; private readonly notebookStatusBarItemProviders; private readonly commandsConverter; private readonly onDidChangeActiveNotebookEditorEmitter; readonly onDidChangeActiveNotebookEditor: Event; private readonly onDidOpenNotebookDocumentEmitter; onDidOpenNotebookDocument: Event; private readonly onDidCloseNotebookDocumentEmitter; onDidCloseNotebookDocument: Event; private readonly onDidChangeVisibleNotebookEditorsEmitter; onDidChangeVisibleNotebookEditors: Event; private activeNotebookEditor; get activeApiNotebookEditor(): theia.NotebookEditor | undefined; private visibleNotebookEditors; get visibleApiNotebookEditors(): theia.NotebookEditor[]; private readonly documents; private readonly editors; private statusBarRegistry; private readonly notebookProxy; private readonly notebookDocumentsProxy; private readonly notebookEditors; private readonly logger; constructor(rpc: RPCProtocol, commands: CommandRegistryImpl, textDocumentsAndEditors: EditorsAndDocumentsExtImpl, textDocuments: DocumentsExtImpl); $provideNotebookCellStatusBarItems(handle: number, uri: UriComponents, index: number, token: CancellationToken): Promise; $releaseNotebookCellStatusBarItems(cacheId: number): void; $acceptActiveCellEditorChange(newActiveEditor: string | null): void; private currentSerializerHandle; private readonly notebookSerializer; registerNotebookSerializer(plugin: Plugin, viewType: string, serializer: theia.NotebookSerializer, options?: theia.NotebookDocumentContentOptions): theia.Disposable; $dataToNotebook(handle: number, bytes: BinaryBuffer, token: CancellationToken): Promise; $notebookToData(handle: number, data: NotebookDataDto, token: CancellationToken): Promise; registerNotebookCellStatusBarItemProvider(notebookType: string, provider: theia.NotebookCellStatusBarItemProvider): theia.Disposable; getEditorById(editorId: string): NotebookEditor; getAllApiDocuments(): theia.NotebookDocument[]; $acceptDocumentsAndEditorsDelta(delta: NotebookDocumentsAndEditorsDelta): Promise; getNotebookDocument(uri: TheiaURI, relaxed: true): NotebookDocument | undefined; getNotebookDocument(uri: TheiaURI): NotebookDocument; waitForNotebookDocument(uri: TheiaURI, duration?: number): Promise; private createExtHostEditor; private waitForNotebookEditor; createNotebookDocument(options: { viewType: string; content?: theia.NotebookData; }): Promise; openNotebookDocument(uri: TheiaURI): Promise; showNotebookDocument(notebookOrUri: theia.NotebookDocument | TheiaURI, options?: theia.NotebookDocumentShowOptions): Promise; } //# sourceMappingURL=notebooks.d.ts.map