import { Kernel } from '@jupyterlab/services'; import { IDisposable } from '@phosphor/disposable'; import { ISignal } from '@phosphor/signaling'; import { CodeEditor } from '../codeeditor'; import { RenderMime } from '../rendermime'; import { Inspector } from './'; /** * An object that handles code inspection. */ export declare class InspectionHandler implements IDisposable, Inspector.IInspectable { /** * Construct a new inspection handler for a widget. */ constructor(options: InspectionHandler.IOptions); /** * A signal emitted when the handler is disposed. */ readonly disposed: ISignal; /** * A signal emitted when inspector should clear all items with no history. */ readonly ephemeralCleared: ISignal; /** * A signal emitted when an inspector value is generated. */ readonly inspected: ISignal; /** * The editor widget used by the inspection handler. */ editor: CodeEditor.IEditor; /** * The kernel used by the inspection handler. */ kernel: Kernel.IKernel; /** * Get whether the inspection handler is disposed. * * #### Notes * This is a read-only property. */ readonly isDisposed: boolean; /** * Dispose of the resources used by the handler. */ dispose(): void; /** * Handle a text changed signal from an editor. * * #### Notes * Update the hints inspector based on a text change. */ protected onTextChanged(): void; private _editor; private _kernel; private _pending; private _rendermime; private _disposed; private _ephemeralCleared; private _inspected; } /** * A namespace for inspection handler statics. */ export declare namespace InspectionHandler { /** * The instantiation options for an inspection handler. */ interface IOptions { /** * The kernel for the inspection handler. */ kernel?: Kernel.IKernel; /** * The mime renderer for the inspection handler. */ rendermime: RenderMime; } }