import { Writable, WritableOptions } from 'stream'; import { ILogObject } from './ILogObject'; import { ILogFormatter } from './ILogFormatter'; export interface ILogFileStreamConfig { path: string; formatter: ILogFormatter; } export declare class LogFileStream extends Writable { private $stream; private $formatter; static create(config: ILogFileStreamConfig, streamOpts?: WritableOptions): Promise; private constructor(); private $formatLogObject; _write(chunk: ILogObject, encoding: BufferEncoding, callback: (error?: Error | null) => void): void; _destroy(error: Error | null, callback: (error?: Error | null) => void): void; }