import { EventEmitter } from 'node:events';
export declare const CONNECTION_WRITE_EVENT_NAME = "connectionwrite";
export interface ConnectionWriteEvent {
    providerId: string;
    count?: number;
}
declare class ProviderStats {
    writeRate: number;
    writeCount: number;
    lastIntervalWriteCount: number;
    deltaRate: number;
    deltaCount: number;
    lastIntervalDeltaCount: number;
    constructor();
}
export interface WithProviderStatistics {
    deltaCount: number;
    lastIntervalDeltaCount: number;
    providerStatistics: {
        [providerId: string]: ProviderStats;
    };
}
export declare function startDeltaStatistics(app: EventEmitter & WithProviderStatistics): NodeJS.Timeout;
export declare function incDeltaStatistics(app: WithProviderStatistics, providerId: any): void;
export {};
