/// import bunyan from 'bunyan'; import { Stream } from 'stream'; export interface BunyanRecord extends Record { level: number; msg: string; module?: string; } export declare class ErrorStream extends Stream { private _errors; readable: boolean; writable: boolean; constructor(); write(data: BunyanRecord): boolean; getErrors(): BunyanRecord[]; } export declare function withSanitizer(streamConfig: any): bunyan.Stream;