import { WebSocketData } from '@mswjs/interceptors/WebSocket';

/**
 * Returns the byte length of the given WebSocket message.
 * @example
 * getMessageLength('hello') // 5
 * getMessageLength(new Blob(['hello'])) // 5
 */
declare function getMessageLength(data: WebSocketData): number;

export { getMessageLength };
