import { URI, MaybePromise, Disposable, PreferenceService } from '@theia/core'; import { NavigatableWidgetOpenHandler, WidgetOpenerOptions } from '@theia/core/lib/browser'; import { NotebookFileSelector, NotebookTypeDescriptor } from '../common/notebook-protocol'; import { NotebookEditorWidget } from './notebook-editor-widget'; import { NotebookEditorWidgetOptions } from './notebook-editor-widget-factory'; export interface NotebookWidgetOpenerOptions extends WidgetOpenerOptions { notebookType?: string; counter?: number; } export declare class NotebookOpenHandler extends NavigatableWidgetOpenHandler { readonly id = "notebook"; protected notebookTypes: NotebookTypeDescriptor[]; protected readonly preferenceService: PreferenceService; registerNotebookType(notebookType: NotebookTypeDescriptor): Disposable; canHandle(uri: URI, options?: NotebookWidgetOpenerOptions): MaybePromise; canHandleType(uri: URI, notebookType?: NotebookTypeDescriptor, defaultHandler?: string): number; protected calculatePriority(notebookType: NotebookTypeDescriptor | undefined): number; protected findHighestPriorityType(uri: URI): NotebookTypeDescriptor | undefined; open(uri: URI, options?: NotebookWidgetOpenerOptions): Promise; protected createWidgetOptions(uri: URI, options?: NotebookWidgetOpenerOptions): NotebookEditorWidgetOptions; /** * Opens a notebook to the side of the current notebook. * Uses timestamp to ensure unique widget IDs for multiple instances without needing to track state. */ openToSide(uri: URI, options?: NotebookWidgetOpenerOptions): Promise; protected matches(selectors: readonly NotebookFileSelector[], resource: URI): boolean; protected selectorMatches(selector: NotebookFileSelector, resource: URI): boolean; } //# sourceMappingURL=notebook-open-handler.d.ts.map