import type net from 'node:net'; type Stats = { bytesWritten: number | null; bytesRead: number | null; }; /** * Socket object extended with previous read and written bytes. * Necessary due to target socket re-use. */ export type SocketWithPreviousStats = net.Socket & { previousBytesWritten?: number; previousBytesRead?: number; }; export declare const countTargetBytes: (sourceSocket: net.Socket, target: SocketWithPreviousStats, registerCloseHandler?: (handler: () => void) => void) => void; export declare const getTargetStats: (rawSocket: net.Socket) => Stats; export {}; //# sourceMappingURL=count_target_bytes.d.ts.map