import { Token } from '@lumino/coreutils'; import type { ISignal } from '@lumino/signaling'; import type { Widget } from '@lumino/widgets'; /** * The inspector panel token. */ export declare const IInspector: Token; /** * An interface for an inspector. */ export interface IInspector { /** * The source of events the inspector listens for. */ source: IInspector.IInspectable | null; } /** * A namespace for inspector interfaces. */ export declare namespace IInspector { /** * The definition of an inspectable source. */ interface IInspectable { /** * A signal emitted when the inspector should clear all items. */ cleared: ISignal; /** * A signal emitted when the inspectable is disposed. */ disposed: ISignal; /** * A signal emitted when an inspector value is generated. */ inspected: ISignal; /** * Test whether the inspectable has been disposed. */ isDisposed: boolean; /** * Indicates whether the inspectable source emits signals. * * #### Notes * The use case for this attribute is to limit the API traffic when no * inspector is visible. It can be modified by the consumer of the source. */ standby: boolean; /** * Handle a text changed signal from an editor. * * #### Notes * Update the hints inspector based on a text change. */ onEditorChange(customText?: string): void; } /** * An update value for code inspectors. */ interface IInspectorUpdate { /** * The content being sent to the inspector for display. */ content: Widget | null; } }