import { type ClientToServerEvents, type ServerToClientEvents } from '../protocol/socket-events.js'; import type { Socket } from 'socket.io'; export interface BufferedSender { (data: string): void; cancel(): void; } export declare function tinybuffer(socket: Socket, timeout: number, maxSize: number): BufferedSender; export declare class FlowControlServer { counter: number; low: number; high: number; constructor(low?: number, high?: number); account(length: number): boolean; commit(length: number): boolean; }