import { Logform } from 'winston'; import Transport, { type TransportStreamOptions } from 'winston-transport'; export interface CloudWatchTransportOptions extends TransportStreamOptions { logGroupName?: string; logStreamName?: string; uploadRate?: number; bufferSize?: number; } /** * Declaring the constants */ export declare class CloudWatchTransport extends Transport { private readonly cloudWatchLogs; private readonly logGroupName; private readonly logStreamName; private readonly uploadRate; private readonly bufferSize; private timeout; private logEvents; private isStreamPresent; constructor(opts?: CloudWatchTransportOptions); private add; private checkStream; private flush; addFormat(...formats: Logform.Format[]): this; log(info: object, next: () => void): void; close(): Promise; }