import { IRenderMimeRegistry } from '@jupyterlab/rendermime'; import { Kernel, KernelMessage } from '@jupyterlab/services'; import { Token } from '@lumino/coreutils'; import { DataModel } from '@lumino/datagrid'; import { IObservableDisposable } from '@lumino/disposable'; import { ISignal } from '@lumino/signaling'; import type { VariableInspectionHandler } from './handler'; export declare const IVariableInspectorManager: Token; export interface IVariableInspectorManager { source: IVariableInspector.IInspectable | null; hasHandler(id: string): boolean; getHandler(id: string): VariableInspectionHandler; addHandler(handler: VariableInspectionHandler): void; } /** * The inspector panel token. */ export declare const IVariableInspector: Token; /** * An interface for an inspector. */ export interface IVariableInspector { source: IVariableInspector.IInspectable | null; } /** * A namespace for inspector interfaces. */ export declare namespace IVariableInspector { interface IInspectable extends IObservableDisposable { inspected: ISignal; rendermime: IRenderMimeRegistry | null; enabled: boolean; performInspection(): void; performMatrixInspection(varName: string, maxRows?: number): Promise; performWidgetInspection(varName: string): Kernel.IShellFuture; performDelete(varName: string): void; } interface ISettings { maxItems: number; } interface IVariableInspectorUpdate { title: IVariableTitle; payload: Array; } interface IVariable { varName: string; varSize: string; varShape: string; varContent: string; varType: string; isMatrix: boolean; isWidget: boolean; } interface IVariableTitle { kernelName?: string; contextName?: string; } }