import { IDisposable } from '@phosphor/disposable'; import { Token } from '@phosphor/application'; import { CommandPalette } from '@phosphor/widgets'; /** * The command IDs used by the command palette plugin. */ export declare namespace CommandIDs { const activate: string; const hide: string; const toggle: string; } /** * The command palette token. */ export declare const ICommandPalette: Token; /** * The options for creating a command palette item. */ export interface IPaletteItem extends CommandPalette.IItemOptions { } /** * The interface for a Jupyter Lab command palette. */ export interface ICommandPalette { /** * The placeholder text of the command palette's search input. */ placeholder: string; /** * Activate the command palette for user input. */ activate(): void; /** * Add a command item to the command palette. * * @param options - The options for creating the command item. * * @returns A disposable that will remove the item from the palette. */ addItem(options: IPaletteItem): IDisposable; }