/// export default class StreamOutput { readonly type: 'stdout' | 'stderr'; readonly stream: NodeJS.WriteStream; static logToFile(msg: string, logfile: string): void; private static startOfLine; readonly output: string; constructor(type: 'stdout' | 'stderr', stream: NodeJS.WriteStream); write(msg?: string, options?: { log?: boolean; }): void; log(data?: string, ...args: any[]): void; writeLogFile(msg: string, withTimestamp: boolean): void; readonly logfile: string | undefined; private timestamp(msg); }