import { BottomBarPanel, ContentAssist } from "../.."; import { TextView, ChannelView } from "./AbstractViews"; import { ElementWithContexMenu } from "../ElementWithContextMenu"; /** * Output view of the bottom panel */ export declare class OutputView extends TextView { constructor(panel?: BottomBarPanel); /** * Select a channel using the selector combo * @param name name of the channel to open */ selectChannel(name: string): Promise; } /** * Debug Console view on the bottom panel * Most functionality will only be available when a debug session is running */ export declare class DebugConsoleView extends ElementWithContexMenu { constructor(panel?: BottomBarPanel); /** * Clear the console of all text */ clearText(): Promise; /** * Type an expression into the debug console text area * @param expression expression in form of a string */ setExpression(expression: string): Promise; /** * Evaluate an expression: * - if no argument is supplied, evaluate the current expression present in debug console text area * - if a string argument is supplied, replace the current expression with the `expression` argument and evaluate * * @param expression expression to evaluate. To use existing contents of the debug console text area instead, don't define this argument */ evaluateExpression(expression?: string): Promise; /** * Create a content assist page object * @returns promise resolving to ContentAssist object */ getContentAssist(): Promise; } /** * Terminal view on the bottom panel */ export declare class TerminalView extends ChannelView { constructor(panel?: BottomBarPanel); /** * Execute command in the internal terminal and wait for results * @param command text of the command * @param timeout optional maximum time to wait for completion in milliseconds, 0 for unlimited * @returns Promise resolving when the command is finished */ executeCommand(command: string, timeout?: number): Promise; /** * Get all text from the internal terminal * Beware, no formatting. * * @returns Promise resolving to all terminal text */ getText(): Promise; /** * Destroy the currently open terminal * @returns Promise resolving when Kill Terminal button is pressed */ killTerminal(): Promise; /** * Initiate new terminal creation * @returns Promise resolving when New Terminal button is pressed */ newTerminal(): Promise; getCurrentChannel(): Promise; selectChannel(name: string): Promise; }