UNPKG

@datalayer/core

Version:

[![Datalayer](https://assets.datalayer.tech/datalayer-25.svg)](https://datalayer.io)

39 lines (38 loc) 988 B
import { Session } from '@jupyterlab/services'; import { IRuntimeModel, type IRuntimeDesc } from '../../models'; export interface IRuntimeAssignOptions { /** * Runtime description. */ runtimeDesc?: IRuntimeDesc; /** * Runtime model to connect to. */ runtimeModel?: IRuntimeModel; /** * Whether to transfer the state to the runtime model. */ transferState?: boolean; } /** * Runtime picker component properties. */ interface IRuntimeSimplePickerProps { /** * Runtime assignment callback. */ assignRuntime: (options: IRuntimeAssignOptions) => Promise<void>; /** * Connection to the active runtime. */ sessionConnection?: Session.ISessionConnection; /** * Whether browser runtime is available. */ browserRuntimeAvailable?: boolean; } /** * Runtime simple picker component. */ export declare function RuntimeSimplePicker(props: IRuntimeSimplePickerProps): JSX.Element; export {};