1 import { Disposable } from 'vscode-languageserver-protocol';
3 * Append messages to the output channel and format it with a title
5 * @param message The message to append to the output channel
7 export declare function addToOutput(message: string, type?: string): void;
9 * Execute a callback safely, if it doesn't work, return default and log messages.
11 * @param cb The function to be executed,
12 * @param defaultText The default value if execution of the cb failed
13 * @param fileName The filename of the current document
14 * @returns {string} formatted text or defaultText
16 export declare function safeExecution(cb: (() => string) | Promise<string>, defaultText: string, fileName: string): string | Promise<string>;
18 * Setup the output channel and the statusBarItem.
19 * Create a command to show the output channel
21 * @returns {Disposable} The command to open the output channel
23 export declare function setupErrorHandler(): Disposable;