import { EventEmitter } from 'node:events'; import { getStream } from 'file-stream-rotator'; export declare class TransmitLogger extends EventEmitter { protected _stream?: ReturnType; readonly name: string; useBase64: boolean; constructor(options: TransmitLogger.Options); received(content: Buffer | string, peer?: string, time?: Date): void; transmitted(content: Buffer | string, peer?: string, time?: Date): void; info(content: string, peer?: string, time?: Date): void; close(): void; protected _write(direction: string, content: Buffer | string, peer?: string, time?: Date): void; protected _getHeader(direction: string, contentSize: number, peer?: string, time?: Date): string; } /** * Variables */ declare class TransmitLogVariables { constructor(init?: Partial); maxFileSize: string; maxFiles: string; } export declare namespace TransmitLogger { interface Options { logDirectory?: string; name: string; frequency?: string; maxFileSize?: string; maxFiles?: string; useBase64?: boolean; } const Variables: typeof TransmitLogVariables; type Variables = TransmitLogVariables; } export {};