import type { IHandleStdin, IStdinReply, IStdinRequest } from './buffered_io'; import type { IShell, IShellManager } from './defs'; /** * Shell manager that knows about all shells in a particular browser tab. * Routes service worker requests received in the UI thread to the correct shell. * * To enable use of service worker for stdin for a Shell, first create a ShellManager and pass both * it and the browsingContextId to the Shell constructor, which will perform the necessary * registration. */ export declare class ShellManager implements IShellManager { handleStdin(request: IStdinRequest): Promise; installServiceWorker(baseUrl: string): Promise; registerShell(shellId: string, shell: IShell, handleStdin: IHandleStdin): void; shellIds(): string[]; private _shells; private _serviceWorkerManager?; }