import { Kernel } from '@jupyterlab/services'; import { Token } from '@phosphor/application'; import { Widget } from '@phosphor/widgets'; import { CodeEditor } from '../codeeditor'; export * from './handler'; export * from './model'; export * from './widget'; /** * The command IDs used by the completer plugin. */ export declare namespace CommandIDs { const invoke: string; const invokeConsole: string; const invokeNotebook: string; const select: string; const selectConsole: string; const selectNotebook: string; } /** * The completion manager token. */ export declare const ICompletionManager: Token; /** * A manager to register completers with parent widgets. */ export interface ICompletionManager { /** * Register a completable object with the completion manager. * * @returns A completable object whose attributes can be updated as necessary. */ register(completable: ICompletionManager.ICompletable): ICompletionManager.ICompletableAttributes; } /** * A namespace for `ICompletionManager` interface specifications. */ export declare namespace ICompletionManager { /** * The attributes of a completable object that can change and sync at runtime. */ interface ICompletableAttributes { /** * The host editor for the completer. */ editor: CodeEditor.IEditor; /** * The kernel used by the completer to make API requests. */ kernel: Kernel.IKernel; } /** * An interface for completer-compatible objects. */ interface ICompletable extends ICompletableAttributes { /** * The referent anchor the completer follows. */ readonly anchor: Widget; /** * The parent of the completer; the completer resources dispose with parent. */ readonly parent: Widget; } }