/// import { Writable } from 'stream'; declare type TOutputMessage = string | object | Error; export declare type TOutputWritable = Writable; export interface IOutputStreamOptions { stream?: TOutputWritable; } export declare class OutputStream { protected _options: IOutputStreamOptions; /** * Provide own write stream * @param stream */ static stream(stream: TOutputWritable): typeof OutputStream; protected static _defaultStream: TOutputWritable; /** ivar reference to chalk as 'color' */ color: import("chalk").Chalk & { supportsColor: import("chalk").ColorSupport; }; constructor(_options?: IOutputStreamOptions); /** * Write messages to the stream * @param msgs messages to write */ write(...msgs: any[]): this; /** * Append text to existing line * @param msgs */ append(...msgs: any[]): this; /** * write messages and close the stream * @param msgs end stream with messages */ end(...msgs: any[]): this; /** * Print messages to the ui stream * @param msg messages to print */ output(...msg: any[]): this; /** * getter for the output stream */ get stream(): TOutputWritable; /** * format message according to type * @param msg */ protected _format(msg: TOutputMessage): any; } export {};