UNPKG

@jupyterlite/terminal

Version:
19 lines (18 loc) 753 B
import { Terminal } from '@jupyterlab/services'; import { IExternalCommand, IStdinReply, IStdinRequest } from '@jupyterlite/cockle'; import { Token } from '@lumino/coreutils'; export declare const ILiteTerminalAPIClient: Token<ILiteTerminalAPIClient>; export interface ILiteTerminalAPIClient extends Terminal.ITerminalAPIClient { /** * Identifier for communicating with service worker. */ browsingContextId: string; /** * Function that handles stdin requests received from service worker. */ handleStdin(request: IStdinRequest): Promise<IStdinReply>; /** * Register an external command that will be available in all terminals. */ registerExternalCommand(options: IExternalCommand.IOptions): void; }