import TransportStream = require("winston-transport") declare class WinstonTelegram extends TransportStream { constructor(options: WinstonTelegram.Options) } declare namespace WinstonTelegram { export interface Options { /** The Telegram bot authentication token. */ token: string /** The Telegram chatid you want to send to. */ chatId: number /** The Telegram mode for parsing entities in the message text. */ parseMode?: string /** Level of messages that this transport should log. (default "info") */ level?: string /** Whether to log only the declared level and none above. (default false) */ unique?: boolean /** Whether to suppress output. (default false) */ silent?: boolean /** Sends the message silently. (default false) */ disableNotification?: boolean /** ? (default "winston-telegram") */ name?: string /** Format output message. (default "[{level}] [message]") */ template?: string /** Format output message by own method. */ formatMessage?: (params: WinstonTelegram.FormatOptions, info: any) => string /** Handle uncaught exceptions. (default true) */ handleExceptions?: boolean /** Time in ms within which to batch messages together. (default = 0) (0 = disabled) */ batchingDelay?: number /** String with which to join batched messages with (default "\n\n") */ batchingSeparator?: string; format?: any; } export interface FormatOptions { level: string, message: string, metadata: any } } export = WinstonTelegram