import { EnvVars } from './envVars'; export declare const terminalService = "terminal"; export interface TerminalSession { readonly sendData: (data: string) => Promise; readonly resize: ({ cols, rows }: { cols: number; rows: number; }) => Promise; readonly destroy: () => Promise; readonly terminalID: string; } export interface TerminalManager { readonly createSession: (opts: { onData: (data: string) => void; onExit?: () => void; size: { cols: number; rows: number; }; terminalID?: string; /** * If the `cmd` parameter is defined it will be executed as a command * and this terminal session will exit when the command exits. */ cmd?: string; /** * Working directory where will the terminal start. */ rootdir?: string; /** * Environment variables that will be accessible inside of the terminal. */ envVars?: EnvVars; }) => Promise; }