import { CommandService, ILogger, QuickInputService, QuickPickInput, QuickPickItem } from '@theia/core'; import { NotebookKernelService, NotebookKernel, NotebookKernelMatchResult, SourceCommand } from './notebook-kernel-service'; import { NotebookModel } from '../view-model/notebook-model'; import { NotebookEditorWidget } from '../notebook-editor-widget'; import { OpenerService } from '@theia/core/lib/browser'; import { NotebookKernelHistoryService } from './notebook-kernel-history-service'; import { NotebookCommand } from '../../common'; export declare const JUPYTER_EXTENSION_ID = "ms-toolsai.jupyter"; type KernelPick = QuickPickItem & { kernel: NotebookKernel; }; type GroupedKernelsPick = QuickPickItem & { kernels: NotebookKernel[]; source: string; }; type SourcePick = QuickPickItem & { action: SourceCommand; }; type InstallExtensionPick = QuickPickItem & { extensionIds: string[]; }; type KernelSourceQuickPickItem = QuickPickItem & { command: NotebookCommand; documentation?: string; }; type KernelQuickPickItem = (QuickPickItem & { autoRun?: boolean; }) | InstallExtensionPick | KernelPick | GroupedKernelsPick | SourcePick | KernelSourceQuickPickItem; export type KernelQuickPickContext = { id: string; extension: string; } | { notebookEditorId: string; } | { id: string; extension: string; notebookEditorId: string; } | { ui?: boolean; notebookEditor?: NotebookEditorWidget; }; export declare class NotebookKernelQuickPickService { protected readonly notebookKernelService: NotebookKernelService; protected readonly quickInputService: QuickInputService; protected readonly commandService: CommandService; protected readonly openerService: OpenerService; protected readonly notebookKernelHistoryService: NotebookKernelHistoryService; protected readonly logger: ILogger; showQuickPick(editor: NotebookModel, wantedId?: string, skipAutoRun?: boolean): Promise; protected getKernelPickerQuickPickItems(matchResult: NotebookKernelMatchResult): QuickPickInput[]; protected selectKernel(notebook: NotebookModel, kernel: NotebookKernel): void; protected getMatchingResult(notebook: NotebookModel): NotebookKernelMatchResult; protected handleQuickPick(editor: NotebookModel, pick: KernelQuickPickItem, items: KernelQuickPickItem[]): Promise; protected displaySelectAnotherQuickPick(editor: NotebookModel, kernelListEmpty: boolean): Promise; protected isUri(value: string): boolean; protected calculateKernelSources(editor: NotebookModel): Promise[]>; protected selectOneKernel(notebook: NotebookModel, source: string, kernels: NotebookKernel[]): Promise; protected executeCommand(notebook: NotebookModel, command: NotebookCommand): Promise; } export {}; //# sourceMappingURL=notebook-kernel-quick-pick-service.d.ts.map