vban
Version:
Node VBAN implementation
8 lines (7 loc) • 584 B
TypeScript
import { Buffer } from 'buffer';
import { ESubProtocol, VBANAudioPacket, VBANPacket, VBANSerialPacket, VBANServicePacket, VBANServicePacketFactory, VBANTEXTPacket } from './packets/index.js';
export declare class VBANProtocolFactory {
static processPacket(packet: Buffer): VBANAudioPacket | VBANSerialPacket | VBANTEXTPacket | VBANServicePacket;
static getConstructor(protocol: ESubProtocol): typeof VBANAudioPacket | typeof VBANSerialPacket | typeof VBANTEXTPacket | typeof VBANServicePacketFactory;
static toUDPBuffer(packet: Pick<VBANPacket, 'subProtocol'>): Buffer;
}