import { Kernel } from '@jupyterlab/services'; import { Token } from '@phosphor/application'; import { Widget } from '@phosphor/widgets'; import { CodeEditor } from '../codeeditor'; import { IRenderMime } from '../rendermime'; export * from './widget'; /** * The command IDs used by the tooltip plugin. */ export declare namespace CommandIDs { const launchConsole = "tooltip:launch-console"; const launchNotebook = "tooltip:launch-notebook"; } /** * The tooltip manager token. */ export declare const ITooltipManager: Token; /** * A manager to register tooltips with parent widgets. */ export interface ITooltipManager { /** * Invoke a tooltip. */ invoke(options: ITooltipManager.IOptions): void; } /** * A namespace for `ICompletionManager` interface specifications. */ export declare namespace ITooltipManager { /** * An interface for tooltip-compatible objects. */ interface IOptions { /** * The referent anchor the tooltip follows. */ readonly anchor: Widget; /** * The referent editor for the tooltip. */ readonly editor: CodeEditor.IEditor; /** * The kernel the tooltip communicates with to populate itself. */ readonly kernel: Kernel.IKernel; /** * The renderer the tooltip uses to render API responses. */ readonly rendermime: IRenderMime; } }